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::Layer3
  • SNMP::Info::MAU

πŸ“ Required MIBs

you need these MIBs, bestie, no way around it:

  • WR-SWITCH-MIB
  • WRS-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 support 1-3 🫢
  • $whiterabbit->os() β€” statically returns whiterabbit. 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 the dot1dBaseBridgeAddress πŸŒ‰
  • $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