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' because sysServices comes back undef. 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