SNMP::...MGbTor(3pm)
β¨ SNMP::Info::Layer3::IBMGbTor β¨
okay bestie, gather round, because we're talking about SNMP::Info::Layer3::IBMGbTor β that's the Perl module (a 3pm manpage, iykyk) that gives you an SNMP interface to Lenovo and IBM Rackswitch devices. it lives in the User Contributed Perl Documentation, and it is genuinely so useful. let's get into it π
πΈ NAME πΈ
SNMP::Info::Layer3::IBMGbTor β your SNMP interface to Lenovo/IBM Rackswitch devices. slay.
π AUTHOR π
Eric Miller. thank you for your service, king π«Ά
π SYNOPSIS π
here's the whole vibe, literally copy-paste this:
# Let SNMP::Info determine the correct subclass for you.
my $ibm = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myswitch',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $ibm->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
the way that AutoSpecify => 1 just does the subclass detective work for you?? main character energy fr fr π
π¦ DESCRIPTION π¦
so this is an abstraction subclass for IBM Rackswitch network devices β formerly known as Blade Network Technologies, if you're an elder millennial who remembers. Lenovo acquired these from IBM and is now selling them under the Lenovo brand. glow-up, honestly β¨
Inherited Classes
the family tree, no cap:
SNMP::Info::Layer3SNMP::Info::LLDP
Required MIBs
you're gonna need:
IBM-GbTOR-10G-L2L3-MIB
Inherited Classes' MIBs
see "Required MIBs" in SNMP::Info::Layer3 for its own MIB requirements. it's got opinions, okay? π
π GLOBALS π
these are methods that return scalar value from SNMP. little single-value besties.
$ibm->model()β returns the model type. it attempts to pull the model from the device description, and if that doesn't werk, it checks$ibm->id()against theIBM-GbTOR-10G-L2L3-MIB. two strategies, one queen π$ibm->vendor()β returns'ibm'$ibm->os()β returns'ibm'$ibm->os_ver()β returns the software version. it's pulling from("agSoftwareVersion")$ibm->temp()β that's("hwTempSensors")π‘οΈ$ibm->fan()β that's("hwFanSpeed")π
Overrides
$ibm->hasLLDP()β is LLDP active in this device?
Note: LLDP may be active, but nothing in "lldpRemoteSystemsData" Tables β so the device would not return any useful topology information. π devastate.
it checks to see if at least one interface is enabled to receive LLDP packets. one is enough, we're not picky π«Ά
Global Methods imported from SNMP::Info::Layer3
see documentation in "GLOBALS" in SNMP::Info::Layer3 for details. it's all there, bestie.
Global Methods imported from SNMP::Info::LLDP
see documentation in "GLOBALS" in SNMP::Info::LLDP for details. also all there.
π TABLE METHODS π
these are methods that return tables of information in the form of a reference to a hash. big data energy fr.
Overrides
$ibm->interfaces()β returns a reference to a hash of interface names to iids. iconic.$ibm->i_ignore()β returns a reference to a hash of interfaces to be ignored. it ignores interfaces with descriptions of tunnel, loopback, and null. not me ghosting those interfaces π$ibm->i_duplex()β returns a reference to a hash of interface link duplex status. source:("portInfoMode")π$ibm->lldp_if()β returns the mapping to the SNMP Interface Table. it tries to cross reference("lldpInfoRemoteDevicesLocalPort")with("ifDescr")and("ifAlias")to get("ifIndex"). matchmaking, honestly π$ibm->lldp_ip()β returns remote IPv4 address. and for all other address types you should uselldp_addrif you want any return address type. so like, if you want any type,lldp_addris your girl. if you want IPv4 only, you're in the right place β¨$ibm->lldp_platform()β returns remote device system description, from("lldpInfoRemoteDevicesSystemDescription"). nosy in the best way π¦
Table Methods imported from SNMP::Info::Layer3
see documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details.
Table Methods imported from SNMP::Info::LLDP
see documentation in "TABLE METHODS" in SNMP::Info::LLDP for details.
and that's the whole page, bestie. no notes, 10/10, would perldoc again π
this iconic piece of documentation was served up as part of perl v5.40.1, dated 2026-02-28. go forth and poll your Rackswitch ππβ¨
π¦ 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