SNMP::...CiscoSB(3pm)
π SNMP::Info::Layer2::CiscoSB π
okay bestie, so this is the Perl module SNMP::Info::Layer2::CiscoSB β it's your SNMP interface to the Cisco Small Business series of switches. yes, the little ones. they're cute. they're also managed. let's go π¦
πΈ AUTHOR πΈ
Nic Bernstein β and, quoting the man himself, shamelessly stolen from Max Baker's Aironet code. the audacity?? iconic. π«Ά
β¨ SYNOPSIS β¨
the vibe here is: let SNMP::Info figure out which subclass you actually need, because you are not about to guess manually π
# Let SNMP::Info determine the correct subclass for you.
my $ciscosb = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myswitch',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $ciscosb->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
π DESCRIPTION π
This gives you an interface to all the SNMP data living on Cisco Small Business managed switches β and yes, "nee LinkSys", so if you're old enough to remember when they were LinkSys, hi, love you. basically it's for anything matching:
enterprises(1).cisco(9).otherEnterprises(6).ciscosb(1)
that OID right there is the vibe check. if your device matches it, you're home. π β¨
π Inherited Classes
SNMP::Info::CDPSNMP::Info::CiscoConfigSNMP::Info::CiscoStatsSNMP::Info::EtherLikeSNMP::Info::Layer2
π Required MIBs
CISCOSB-DEVICEPARAMS-MIBCISCOSB-POE-MIB
𧬠Inherited Classes
and also all the MIBs that the inherited classes listed above need. you don't get to skip those, bestie, they're a package deal π«Ά
π GLOBALS π
these are the methods that hand you back a scalar value straight from SNMP. little snack-sized facts about your switch.
$ciscosb->mac()β returns the mac, pulled from"rndBasePhysicalAddress".$ciscosb->os_ver()β returns the software version, straight from"entPhysicalSoftwareRev".$ciscosb->serial()β returns the serial number of the unit, from"entPhysicalSerialNum".$ciscosb->model()β returns the model and the hardware revision of the unit, from"entPhysicalModelName+entPhysicalHardwareRev". yes, both, glued together, that's just how it is.
π Overrides
$ciscosb->vendor()β returns'cisco'.$ciscosb->os()β returns'ros'.
π Globals imported from SNMP::Info::Layer2
the details live in "GLOBALS" in SNMP::Info::Layer2 β go read that, it's giving thorough.
π Globals imported from SNMP::Info::EtherLike
same deal, but for "GLOBALS" in SNMP::Info::EtherLike.
πΌ TABLE METHODS πΌ
$ciscosb->peth_port_power()β the power being supplied by the PoE ports, measured in milliwatts. it comes from"rlPethPsePortOutputPower". no cap, your ports are out here feeding devices π$ciscosb->i_duplex()β returns the duplex, and it figures that out based on whateverEtherLike->el_duplex()came back with. it's a chain, bestie, we respect the chain.
π Overrides
$ciscosb->interfaces()β uses thei_name()field. that's the whole thing. simple. effective. periodt.
π Table Methods imported from SNMP::Info::Layer2
see "TABLE METHODS" in SNMP::Info::Layer2 for the full rundown.
π Table Methods imported from SNMP::Info::EtherLike
and see "TABLE METHODS" in SNMP::Info::EtherLike for all of that too π
heads up bestie: everything here is a straight-up interface to what's in those MIBs. if a device doesn't answer, that's a network problem, not a me problem π
and that's the whole page, you ate it, you're a SNMP girlie now πβ¨
this lil doc is from perl v5.40.1, dated 2026-02-28 β the SNMP::...CiscoSB(3pm) of it all. stay connected, stay slaying π
π¦ 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