SNMP::...erabbit(3pm)
π SNMP::Info::Layer3::Whiterabbit π
okay so bestie, welcome to the SNMP::...erabbit(3pm) page β yes that's the manual name, and yes it's giving "someone truncated the filename for fun", but we move. This is the User Contributed Perl Documentation for SNMP::Info::Layer3::Whiterabbit, aka the SNMP interface to Whiterabbit switches. π°β¨
π«Ά NAME
SNMP::Info::Layer3::Whiterabbit β SNMP Interface to Whiterabbit Switches
literally the whole vibe. it talks to Whiterabbit switches over SNMP and hands you the info like a good bestie. π
π AUTHOR
Christoph Handel
the icon. the main character. we stan. π
β¨ SYNOPSIS
here's the whole "let SNMP::Info figure out which subclass you are" ritual, copy-paste ready, no cap:
# Let SNMP::Info determine the correct subclass for you.
my $whiterabbit = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myswitch',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $whiterabbit->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
so like, if it can't reach DestHost it literally dies (dramatic, but respectful). otherwise class() tells you which subclass SNMP::Info matched the device to. slay. π₯
πΈ DESCRIPTION
okay so what this does: it gives you an abstraction to all the configuration info you can get off a Whiterabbit Switch via SNMP. that's the whole point. no need to hand-wrangle OIDs like some kind of medieval peasant. π§
π Inherited Classes
these are the parents it picks up behavior from:
SNMP::Info::Layer3SNMP::Info::MAU
π Required MIBs
you need these MIBs, bestie, no way around it:
WR-SWITCH-MIBWRS-PRODUCTS-MIB
and they live here: https://github.com/GSI-CS-CO/wrs_mibs.git
π GLOBALS
these are the methods that return a scalar value from SNMP. one value, in and out, clean and simple. β¨
$whiterabbit->layers()β overrides the snmp value, because we support1-3π«Ά$whiterabbit->os()β statically returnswhiterabbit. it's not out here guessing, it's just stating facts. π$whiterabbit->vendor()β returns the manufacturer as it's read from the device, e.g.seven solutions,creotech, etc. whatever the device says, that's what you get. π$whiterabbit->model()β as returned by the mib. no meaningful translation β it is what it is, bestie. π$whiterabbit->mac()β uses thedot1dBaseBridgeAddressπ$whiterabbit->os_ver()β including the git hash, because we love receipts. π₯
π Globals imported from SNMP::Info::Layer3
see the documentation in "GLOBALS" in SNMP::Info::Layer3 for details, okay? it's all there, iykyk.
π Globals imported from SNMP::Info::MAU
see the documentation in "GLOBALS" in SNMP::Info::MAU for details. same energy, different parent. β¨
π¦ TABLE METHODS
these give you tables of info, returned as a reference to a hash. not one little value β the whole ensemble. π
πΈ Table Methods imported from SNMP::Info::Layer3
see the documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details. π«Ά
πΈ Table Methods imported from SNMP::Info::MAU
see the documentation in "TABLE METHODS" in SNMP::Info::MAU for details. π«Ά
lowkey reminder: everything imported from the parent classes is documented over there, so if something's missing here, that's why. not me being mysterious, it's just how inheritance works π
and that's the page!! π this was written for perl v5.40.1, dated 2026-02-28, and it's part of SNMP::...erabbit(3pm). go forth and SNMP responsibly, bestie β 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