SNMP::...Switch(3pm)

πŸ“¦
version 3.975000 Β· 4 versions
, in ubuntu stonking

🌸 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 from agentInventoryMachineModel. Tries, bestie. πŸ™ˆ
  • $router->os() β€” returns 'efos'. iconic.
  • $router->os_ver() β€” tries to resolve the version string from agentInventorySoftwareVersion or sysDescr. 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