SNMP::...Switch(3pm)
πΈ NAME πΈ
SNMP::Info::Layer3::EdgeSwitch β bestie, this is the SNMP Interface to Broadcom EdgeSwitch devices, and it's literally the whole point of this page. π
Manual page, in case you were wondering: SNMP::...Switch(3pm) β that's the one you're reading right now, slay.
β¨ AUTHOR β¨
Ambroise Rosset wrote this. Respect the icon. π
π SYNOPSIS π
okay so here's the vibe β let SNMP::Info figure out the correct subclass for you, because why would you do it manually when the code can just know:
# Let SNMP::Info determine the correct subclass for you.
my $router = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myrouter',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $router->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
like, you connect, it tells you which subclass this device belongs to, and you go about your day. main character energy fr. π¦
π DESCRIPTION π
It's a subclass for Broadcom EdgeSwitch devices. Simple as that, no notes. β¨
π Inherited Classes
SNMP::Info::Layer3
πΈ Required MIBs
EdgeSwitch-SWITCHING-MIB
π Inherited Classes' MIBs
- See "Required MIBs" in SNMP::Info::Layer3 for its own MIB requirements. (Go check it, bestie, it's not gonna check itself.)
π GLOBALS π
These are methods that return a scalar value from SNMP. Scalar, singular, one little value, periodt. π
π Overrides
$router->vendor()β hands you back'broadcom'. That's it, that's the answer. π$router->model()β tries to resolve the model string fromagentInventoryMachineModel. Tries, bestie. π$router->os()β returns'efos'. iconic.$router->os_ver()β tries to resolve the version string fromagentInventorySoftwareVersionorsysDescr. Two chances, we love a backup plan. β¨
π Globals imported from SNMP::Info::Layer3
- See documentation in "GLOBALS" in SNMP::Info::Layer3 for details. All the lore lives over there. π«Ά
π§ TABLE METHODS π§
These are methods that return tables of information in the form of a reference to a hash. Yes, a whole hash ref, a table full of data, we're eating good. π
β Table Methods imported from SNMP::Info::Layer3
- See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details. Same deal, go read the parent, it ate. π₯
mwah, that's the whole page, and you read all of it, no cap. This was perl v5.40.1, dated 2026-02-28, from SNMP::...Switch(3pm) β User Contributed Perl Documentation, as always. Byeeee ππβ¨
π¦ 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