SNMP::Info::Layer2::Sixnet - SNMP Interface to Sixnet industrial switches
Eric Miller
my $sixnet = new SNMP::Info( AutoSpecify => 1, Debug => 1, DestHost => 'myswitch', Community => 'public', Version => 2 ) or die "Can't connect to DestHost.\n"; my $class = $sixnet->class(); print " Using device sub class : $class\n";
SNMP::Info::Layer2::Sixnet is a subclass of SNMP::Info that provides an interface to Sixnet industrial switches.
For speed or debugging purposes you can call the subclass directly, but not after determining a more specific class using the method above.
my $sixnet = new SNMP::Info::Layer2::Sixnet(...);
See "Required MIBs" in SNMP::Info::Layer2 for its MIB requirements.
These are methods that return scalar value from SNMP
Returns 'sixnet'
Returns the software version returned by firmwareRevision
firmwareRevision
Returns model type. Returns sxid if it exists, otherwise cross references $sixnet->id() with the SIXNET-MIB.
sxid
(p1status)
p1status
(p2status)
p2status
See "GLOBALS" in SNMP::Info::Layer2 for details.
These are methods that return tables of information in the form of a reference to a hash.
See "TABLE METHODS" in SNMP::Info::Layer2 for details.
To install SNMP::Info, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SNMP::Info
CPAN shell
perl -MCPAN -e shell install SNMP::Info
For more information on module installation, please visit the detailed CPAN module installation guide.