SNMP::...Redlion(3pm)
π SNMP::...Redlion π
okay bestie so this page lives in the User Contributed Perl Documentation section of the manual (it's the (3pm) one, iykyk), and it's all about SNMP::...Redlion. grab a strawberry π and let's go, no cap.
β¨ NAME β¨
SNMP::Info::Layer3::Redlion β the SNMP Interface to redlion routers, periodt.
π AUTHORS π
nick nauwelaerts
π SYNOPSIS π
fr fr, just let the module figure out which subclass you need:
# Let SNMP::Info determine the correct subclass for you.
my $redlion = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myrouter',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $redlion->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
like, if it can't connect it just goes no thoughts head empty and dies with Can't connect to DestHost.\n. π
π¦ DESCRIPTION π¦
It's the subclass for redlion routers. that's the whole vibe. π
πΈ Inherited Classes πΈ
SNMP::Info::Layer3
πΈ Required MIBs πΈ
RED-LION-RAM-MIB
πΈ Inherited MIBs πΈ
hit up "Required MIBs" in SNMP::Info::Layer3 if you wanna know what it needs, because the inheritance chain is giving main character energy.
π GLOBALS π
these are the methods that hand you a scalar value straight out of SNMP. cute little one-value-at-a-time things. β¨
$redlion->layers()β returns'00000110'becausesysServicescomes backundef. yes, hardcoded, and she ate. π₯$redlion->model()β returns the model, extracted from"unitDescription".$redlion->os()β returns'sn'.$redlion->os_ver()β returns the OS version, extracted from"unitFirmwareVersion".$redlion->serial()β returns the serial, extracted from"unitSerialNumber". β οΈ hot tip: it must be enabled in the snmp setup of the device for this to actually show up. no setting, no serial, that's the deal π$redlion->vendor()β returns'redlion'.
β Global Methods imported from SNMP::Info::Layer3 β
see "GLOBALS" in SNMP::Info::Layer3 for the deets, bestie.
π TABLE ENTRIES π
these are the methods that come back with tables of info, in the form of a reference to a hash. we love a blessed data structure. π
β Table Methods imported from SNMP::Info::Layer3 β
see "TABLE METHODS" in SNMP::Info::Layer3 for details. go read it, it's worth it, promise.
and that's the whole page babes π«Ά this lil beauty is documented under perl v5.40.1, dated 2026-02-28, so if you're reading this in the future β hi, hope your SNMP requests are all returning <cyan>noError</cyan> π mwah π
π¦ 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