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 the SNMP::Info::Layer3 manpage for its own MIB requirements.
See Required MIBs in the SNMP::Info::MAU manpage for its own MIB requirements.
See Required MIBs in the SNMP::Info::LLDP manpage for its own MIB requirements.
These are methods that return scalar value from SNMP
vendor()
Returns 'alcatel-lucent'
hasCDP()
Returns whether LLDP is enabled.
model()
Tries to reference $alu->id()
to one of the product MIBs listed above
Removes 'device' from the name for readability.
os()
Returns 'AOS'
os_ver()
Grabs the os version from sysDescr
ps1_type()
Return the type of the first power supply from the ENTITY-MIB
ps2_type()
Return the type of the second power supply from the ENTITY-MIB
ps1_status()
Return the status of the first power supply from the ALCATEL-IND1-CHASSIS-MIB
ps2_status()
Return the status of the second power supply from the ALCATEL-IND1-CHASSIS-MIB
See documentation in GLOBALS in the SNMP::Info::Layer3 manpage for details.
See documentation in GLOBALS in the SNMP::Info::MAU manpage for details.
See documentation in GLOBALS in the SNMP::Info::Layer3 manpage for details.
These are methods that return tables of information in the form of a reference to a hash.
interfaces()
Returns interface name from ifName
, since the default return value
of ifDescr
includes the OS version.
fw_mac()
Use the Q-BRIDGE-MIB instead of BRIDGE-MIB
fw_port()
Use the Q-BRIDGE-MIB instead of BRIDGE-MIB
bp_index()
Work around various bugs in the BRIDGE-MIB and
Q-BRIDGE-MIB implementations, by returning both
ifIndex
and dot1dBasePort
mappings to ifIndex
values.
c_id()
Returns LLDP information.
c_if()
Returns LLDP information.
c_ip()
Returns LLDP information.
c_platform()
Returns LLDP information.
c_port()
Returns LLDP information.
i_duplex_admin()
Returns info from MAU-MIB
i_speed_admin()
Returns info from MAU-MIB
peth_port_ifindex()
Returns the ifIndex
value for power-ethernet ports
using the OmniSwitch algorithm.
See documentation in TABLE METHODS in the SNMP::Info::Layer3 manpage for details.
See documentation in TABLE METHODS in the SNMP::Info::MAU manpage for details.
See documentation in TABLE METHODS in the SNMP::Info::LLDP manpage for details.