NAME

Net::BlueCoat::SGOS - A module to interact with Blue Coat SGOS-based devices.

VERSION

Version 0.44

SYNOPSIS

This module interacts with Blue Coat SGOS-based devices. Right now, this is limited to parsing of the 'sysinfo' data from the device.

use strict; #always!
use Net::BlueCoat::SGOS;
my $bc = Net::BlueCoat::SGOS->new(
	'appliancehost'		=> 'swg.example.com',
	'applianceport'		=> 8082,
	'applianceuser'		=> 'admin',
	'appliancepassword'	=> 'password'
);
$bc->login();
# or
# my $bc = Net::BlueCoat::SGOS->new();
# $bc->get_sysinfo_from_file('path/to/file.sysinfo');

my $sgosversion = $bc->{'sgosversion'};
my $sgosreleaseid = $bc->{'sgosreleaseid'};
my $serialnumber = $bc->{'serialnumber'};
my $modelnumber = $bc->{'modelnumber'};
my $sysinfotime = $bc->{'sysinfotime'};

# Hardware section of the sysinfo file
my $hwinfo = $bc->{'sgos_sysinfo_sect'}{'Hardware Information'};

# Software configuration (e.g. show configuration)
my $swconfig = $bc->{'sgos_sysinfo_sect'}{'Software Configuration'};

SUBROUTINES/METHODS

Below are methods for Net::BlueCoat::SGOS.

new

Creates a new Net::BlueCoat::SGOS object. Can be passed one of the following:

appliancehost
applianceport
applianceusername
appliancepassword
applianceconnectmode (one of http or https)
debuglevel

login

Logs into the Blue Coat appliance using the parameters given when constructed.

get_sysinfo_from_file

Takes one parameter: the filename of a sysinfo file on the disk. Use this instead of logging in over the network.

AUTHOR

Matthew Lange <mmlange@cpan.org>

BUGS

Please report any bugs or feature requests through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-BlueCoat-SGOS. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Net::BlueCoat::SGOS

You can also look for information at:

LICENSE AND COPYRIGHT

Copyright (C) 2008-2010 Matthew Lange.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.