SNMP::Info::Layer3::Enterasys - SNMP Interface to Enterasys Network Devices
Eric Miller
# Let SNMP::Info determine the correct subclass for you. my $enterasys = new SNMP::Info( AutoSpecify => 1, Debug => 1, DestHost => 'myswitch', Community => 'public', Version => 1 ) or die "Can't connect to DestHost.\n"; my $class = $enterasys->class(); print "SNMP::Info determined this device to fall under subclass : $class\n";
Provides abstraction to the configuration information obtainable from an Enterasys device through SNMP.
For speed or debugging purposes you can call the subclass directly, but not after determining a more specific class using the method above.
my $enterasys = new SNMP::Info::Layer3::Enterasys(...);
See "Required MIBs" in SNMP::Info::MAU for its MIB requirements.
See "Required MIBs" in SNMP::Info::LLDP for its MIB requirements.
See "Required MIBs" in SNMP::Info::CDP for its MIB requirements.
See "Required MIBs" in SNMP::Info::Layer3 for its MIB requirements.
These are methods that return scalar value from SNMP
Returns model type. Checks $enterasys->id() against the ENTERASYS-OIDS-MIB.
Returns enterasys
Returns os version extracted from sysDescr
sysDescr
Returns base mac
(dot1dBaseBridgeAddress)
dot1dBaseBridgeAddress
See documentation in "GLOBALS" in SNMP::Info::MAU for details.
See documentation in "GLOBALS" in SNMP::Info::LLDP for details.
See documentation in "GLOBALS" in SNMP::Info::CDP for details.
See documentation in "GLOBALS" in SNMP::Info::Layer3 for details.
These are methods that return tables of information in the form of a reference to a hash.
Mapping between the Interface Table Index (iid) and the physical port name.
Returns reference to hash. Creates a key for each IID that should be ignored.
Currently looks for rs232, tunnel,loopback,lo,null from $enterasys->interfaces()
See documentation for mau_i_duplex() in "TABLE METHODS" in SNMP::Info::MAU.
See documentation for mau_i_duplex_admin() in "TABLE METHODS" in SNMP::Info::MAU.
The time filter TimeFilter implementation continuously increments when walked and we may never reach the end of the table. This behavior can be modified with the "set snmp timefilter break disable" command, unfortunately it is not the default. These methods are overridden to supply a partial value of zero which means no time filter.
TimeFilter
"set snmp timefilter break disable"
See documentation in "TABLE METHODS" in SNMP::Info::MAU for details.
See documentation in "TABLE METHODS" in SNMP::Info::LLDP for details.
See documentation in "TABLE METHODS" in SNMP::Info::CDP for details.
See documentation in "TABLE METHODS" in SNMP::Info::Layer3 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.