SNMP::...lLucent(3pm)
π SNMP::Info::Layer3::AlcatelLucent(3pm) π
okay bestie, gather round, because we're about to get intimately acquainted with the SNMP::Info::Layer3::AlcatelLucent page from the SNMP::...lLucent(3pm) manual β yes the header truncates it like that, it's giving mysterious. anyway. it's a Perl module page, it's a subclass, and it's genuinely iconic.
πΈ NAME πΈ
SNMP::Info::Layer3::AlcatelLucent β your SNMP Interface to Alcatel-Lucent OmniSwitch. that's the whole vibe. π
π«Ά AUTHOR π«Ά
Bill Fenner. say thank you to Bill. π
β¨ SYNOPSIS β¨
here's the little starter pack, copy it exactly, don't freestyle:
# 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";
so AutoSpecify => 1 means you don't have to do the homework, SNMP::Info sniffs out the subclass itself. Debug => 1 is your yapping mode. and DestHost, Community, Version go straight through to SNMP::Session, no middleman. if it can't connect? die "Can't connect to DestHost.\n". periodt.
π¦ DESCRIPTION π¦
this is the subclass for Alcatel-Lucent OmniSwitch devices. that's the energy. π
π§ Inherited Classes π§
SNMP::Info::Layer3SNMP::Info::MAUSNMP::Info::LLDP
she's got ancestors and they're all serving.
π Required MIBs π
ALCATEL-IND1-DEVICESALCATEL-IND1-CHASSIS-MIBALU-POWER-ETHERNET-MIB
β οΈ okay listen, this one's important: Alcatel-Lucent distributes their own proprietary version of thePOWER-ETHERNET-MIB, but the MIB module name they ship it under is just plainPOWER-ETHERNET-MIB. so you have to hand-edit it, bestie, hand-edit it, and change the module name toALU-POWER-ETHERNET-MIBso it can coexist peacefully with the standardPOWER-ETHERNET-MIB. two MIBs, same name, one file, chaos. π
π Inherited Classes' MIBs π
- See "Required MIBs" in
SNMP::Info::Layer3for its own MIB requirements. - See "Required MIBs" in
SNMP::Info::MAUfor its own MIB requirements. - See "Required MIBs" in
SNMP::Info::LLDPfor its own MIB requirements.
π GLOBALS π
these are the methods that return a scalar value from SNMP. one value, one moment, main character energy.
$alu->vendor()β returns'alcatel-lucent'. that's it, that's the answer. π$alu->model()β tries to reference$alu->id()to one of the product MIBs listed up above. then it removes'device'from the name for readability, because we're not doing that. β¨$alu->os()β returns'AOS'.$alu->os_ver()β grabs the OS version from"sysDescr".$alu->ps1_type()β returns the type of the first power supply, from theENTITY-MIB.$alu->ps2_type()β returns the type of the second power supply, from theENTITY-MIB.$alu->ps1_status()β returns the status of the first power supply, from theALCATEL-IND1-CHASSIS-MIB.$alu->ps2_status()β returns the status of the second power supply, from theALCATEL-IND1-CHASSIS-MIB.
π Global Methods imported from SNMP::Info::Layer3 π
See documentation in "GLOBALS" in SNMP::Info::Layer3 for details.
π Global Methods imported from SNMP::Info::MAU π
See documentation in "GLOBALS" in SNMP::Info::MAU for details.
π Global Methods imported from SNMP::Info::Layer3 π
See documentation in "GLOBALS" in SNMP::Info::Layer3 for details.
π no bestie you're not seeing double, SNMP::Info::Layer3 really is listed twice up there in the globals imports. we keep it. we don't question it. it's iconic behaviour.
β TABLE METHODS β
these ones return tables of info β as a reference to a hash, obviously. little data structures, big feelings.
$alu->interfaces()β returns the interface name from"ifName", because the default return value of"ifDescr"includes the OS version and we simply cannot. π$alu->bp_index()β works around various bugs in theBRIDGE-MIBandQ-BRIDGE-MIBimplementations, by returning both"ifIndex"and"dot1dBasePort"mappings to"ifIndex"values. yes both. we're built different.$alu->i_duplex_admin()β returns info fromMAU-MIB.$alu->i_speed_admin()β returns info fromMAU-MIB.$alu->peth_port_ifindex()β returns the"ifIndex"value for power-ethernet ports using the OmniSwitch algorithm. it's giving proprietary.
π Table Methods imported from SNMP::Info::Layer3 π
See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details.
π Table Methods imported from SNMP::Info::MAU π
See documentation in "TABLE METHODS" in SNMP::Info::MAU for details.
π Table Methods imported from SNMP::Info::LLDP π
See documentation in "TABLE METHODS" in SNMP::Info::LLDP for details.
and that's the page, bestie π«Ά this was perl v5.40.1, dated 2026-02-28, living under the SNMP::...lLucent(3pm) manual β go forth and poll responsibly. πβ¨π
π¦ where this page comes from
- ubuntu stonking: libsnmp-info-perl 3.975000-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms