SNMP::...illion(3pm)
โจ SNMP::...illion(3pm) โจ
okay bestie, this is a page from the User Contributed Perl Documentation set โ it's the man page for SNMP::...illion(3pm) (yes the name is abbreviated like that, we love a mystery ๐
). let's get into it.
๐ธ NAME ๐ธ
SNMP::Info::Layer2::Centillion โ the SNMP interface to Nortel Centillion based ATM Switches. no cap, that's the whole vibe.
๐ซถ AUTHOR ๐ซถ
Eric Miller wrote this. iconic of him honestly.
โจ SYNOPSIS โจ
okay so here's how you actually use it. you let SNMP::Info figure out the right subclass for you, because why would you do that work yourself:
# Let SNMP::Info determine the correct subclass for you.
my $centillion = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myswitch',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $centillion->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
like, it just tells you what class your device falls under. main character energy tbh ๐
๐ DESCRIPTION ๐
This gives you an abstraction over all the configuration info you can pull off a Centillion device through SNMP. simple as that, fr fr.
Note: This class supports version 4.X and 5.X which are VLAN based rather than bridge group based. so if you're on the bridge-group flavor, this is not your girl, sorry bestie ๐ญ
๐ฆ Inherited Classes
SNMP::InfoSNMP::Info::BridgeSNMP::Info::NortelStackSNMP::Info::SONMP
๐ Required MIBs
CENTILLION-DOT3-EXTENSIONS-MIBS5-COMMON-STATS-MIBCENTILLION-VLAN-MIBCENTILLION-CONFIG-MIB
๐ Inherited Classes' MIBs
- See "REQUIREMENTS" in
SNMP::Infofor its own MIB requirements. - See "Required MIBs" in
SNMP::Info::Bridgefor its own MIB requirements. - See "Required MIBs" in
SNMP::Info::NortelStackfor its own MIB requirements. - See "Required MIBs" in
SNMP::Info::SONMPfor its own MIB requirements.
๐ GLOBALS ๐
these are the methods that return scalar values from SNMP. lil single-value girlies โจ
$centillion->vendor()โ returns'nortel'$centillion->model()โ cross references$centillion->id()to theSYNOPTICS-MIBand returns the results. also it removes"sreg-"from the model name (we don't need that baggage ๐ฎ)$centillion->os()โ returns'centillion'$centillion->tftp_action()โ ("sysTFTPStart")$centillion->tftp_host()โ ("sysTFTPIpAddress")$centillion->tftp_file()โ ("sysTFTPFileName")$centillion->tftp_type()โ ("sysTFTPFileType")$centillion->tftp_result()โ ("sysTFTPResult")
๐ Overrides
$centillion->index_factor()โ required bySNMP::Info::SONMP. it's the number representing the number of ports reserved per slot within the device MIB. returns256.$centillion->slot_offset()โ required bySNMP::Info::SONMP. it's the offset if slot numbering does not start at0. returns0.
๐ง Globals imported from SNMP::Info
See documentation in "USAGE" in SNMP::Info for details.
๐ง Globals imported from SNMP::Info::Bridge
See documentation in "GLOBALS" in SNMP::Info::Bridge for details.
๐ง Globals imported from SNMP::Info::NortelStack
See documentation in "GLOBALS" in SNMP::Info::NortelStack for details.
๐ง Global Methods imported from SNMP::Info::SONMP
See documentation in "GLOBALS" in SNMP::Info::SONMP for details.
๐ TABLE METHODS ๐
these are the methods that return tables of info, in the form of a reference to a hash. multi-value baddies ๐
๐ Overrides
$centillion->interfaces()โ returns a reference to the map between IID and physical Port.
Slot and port numbers on the Passport switches are determined by the formula:
port = index % 256
slot = int(index / 256)
The physical port name is returned as slot.port.
$centillion->i_duplex()โ returns reference to map of IIDs to current link duplex$centillion->i_duplex_admin()โ returns reference to hash of IIDs to admin duplex setting$centillion->i_ignore()โ returns reference to hash of IIDs to ignore.$centillion->fw_mac()โ ("s5CmSNodeMacAddr")$centillion->fw_port()โ ("s5CmSNodeIfIndx")$centillion->bp_index()โ returns a mapping between"ifIndex"and the Bridge Table.$centillion->i_vlan()โ returns a mapping between"ifIndex"and the VLAN.
๐ Centillion 802.3 Extension Table ("cnDot3ExtnTable")
$centillion->centillion_p_index()โ returns reference to hash. maps table IIDs to Interface IIDs. ("cnDot3ExtnIfIndex")$centillion->centillion_p_duplex()โ returns reference to hash. maps port operational duplexes to IIDs. ("cnDot3ExtnIfOperConnectionType")$centillion->rc_centillion_p_duplex_admin()โ returns reference to hash. maps port admin duplexes to IIDs. ("cnDot3ExtnIfAdminConnectionType")
๐ธ Centillion VLAN Table ("cnVlanPortMemberTable")
$centillion->centillion_i_vlan_index()โ returns reference to hash. Key: Table entry, Value: Index. ("cnVlanPortMemberIfIndex")$centillion->centillion_i_vlan()โ returns reference to hash. Key: Table entry, Value: VLAN ID. ("cnVlanPortMemberVID")$centillion->centillion_i_vlan_type()โ returns reference to hash. Key: Table entry, Value: VLAN Type. ("cnVlanPortMemberIngressType")
๐ซ Table Methods imported from SNMP::Info
See documentation in "USAGE" in SNMP::Info for details.
๐ซ Table Methods imported from SNMP::Info::Bridge
See documentation in "TABLE METHODS" in SNMP::Info::Bridge for details.
๐ซ Table Methods imported from SNMP::Info::NortelStack
See documentation in "TABLE METHODS" in SNMP::Info::NortelStack for details.
๐ซ Table Methods imported from SNMP::Info::SONMP
See documentation in "TABLE METHODS" in SNMP::Info::SONMP for details.
and that's the whole page bestie, no skips, no cuts, we read all of it ๐
okay bye ily โ this bad boy ships as perl v5.40.1, dated 2026-02-28, and it lives under SNMP::...illion(3pm). slay ๐โจ
๐ฆ 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