SNMP::Info::Layer3::AlcatelLucent - SNMP Interface to Alcatel-Lucent OmniSwitch
Bill Fenner
# Let SNMP::Info determine the correct subclass for you. my $alu = new SNMP::Info( AutoSpecify => 1, Debug => 1, # These arguments are passed directly to SNMP::Session DestHost => 'myswitch', Community => 'public', Version => 2 ) or die "Can't connect to DestHost.\n"; my $class = $alu->class(); print "SNMP::Info determined this device to fall under subclass : $class\n";
Subclass for Alcatel-Lucent OmniSwitch devices
Note that Alcatel-Lucent distributes their own proprietary version of the POWER-ETHERNET-MIB, but the MIB module name that they distribute is simply POWER-ETHERNET-MIB. This module must be hand-edited to change the module name to ALU-POWER-ETHERNET-MIB so that it can be used simultaneously with the standard POWER-ETHERNET-MIB.
See "Required MIBs" in SNMP::Info::Layer3 for its own MIB requirements.
See "Required MIBs" in SNMP::Info::MAU for its own MIB requirements.
See "Required MIBs" in SNMP::Info::LLDP for its own MIB requirements.
These are methods that return scalar value from SNMP
Returns 'alcatel-lucent'
Tries to reference $alu->id() to one of the product MIBs listed above
Removes 'device' from the name for readability.
Returns 'AOS'
Grabs the os version from sysDescr
sysDescr
Return the type of the first power supply from the ENTITY-MIB
Return the type of the second power supply from the ENTITY-MIB
Return the status of the first power supply from the ALCATEL-IND1-CHASSIS-MIB
Return the status of the second power supply from the ALCATEL-IND1-CHASSIS-MIB
See documentation in "GLOBALS" in SNMP::Info::Layer3 for details.
See documentation in "GLOBALS" in SNMP::Info::MAU for details.
These are methods that return tables of information in the form of a reference to a hash.
Returns interface name from ifName, since the default return value of ifDescr includes the OS version.
ifName
ifDescr
Work around various bugs in the BRIDGE-MIB and Q-BRIDGE-MIB implementations, by returning both ifIndex and dot1dBasePort mappings to ifIndex values.
ifIndex
dot1dBasePort
Returns info from MAU-MIB
Returns the ifIndex value for power-ethernet ports using the OmniSwitch algorithm.
See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details.
See documentation in "TABLE METHODS" in SNMP::Info::MAU for details.
See documentation in "TABLE METHODS" in SNMP::Info::LLDP 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.