SNMP::...chmann(3pm)

πŸ’– SNMP::Info::Layer2::Hirschmann πŸ’–

okay bestie, welcome to SNMP::Info::Layer2::Hirschmann β€” the SNMP Interface to L2 Hirschmann Switches, living in the User Contributed Perl Documentation corner of your system. it's a .3pm page, it's giving perl module, and it's here to help you talk to Hirschmann Layer 2 switches. no cap πŸ¦‹


✨ AUTHOR ✨

Christophe COMTE β€” say thank you, they wrote this πŸ’œ


🌸 SYNOPSIS 🌸

here's the vibe: you let SNMP::Info figure out the right subclass for you, periodt.

# 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";

then you ask it what class it decided on, and it tells you. iconic behavior honestly πŸ‘‘


πŸŽ€ DESCRIPTION πŸŽ€

it's a subclass for Hirschmann L2 devices. that's the whole job and it does it slayfully πŸ’…

🌈 Inherited Classes 🌈

these are the classes it inherits from, the ancestors, the lineage, the family tree:

  • SNMP::Info::Layer2
  • SNMP::Info::CDP

πŸ“š Required MIBs πŸ“š

you're gonna need these loaded, no skipping:

  • HMPRIV-MGMT-SNMP-MIB
    • Inherited Classes β€” the MIBs required by the inherited classes listed above. so like, go look at those too, iykyk.

πŸ‘‘ GLOBALS πŸ‘‘

these are methods that return scalar values straight from SNMP β€” one value, no table nonsense, just a nice lil answer ✨

πŸ’… Overrides πŸ’…

  • $device->vendor() β€” returns 'hirschmann'. that's it. that's the whole answer. fr fr.
  • $device->os() β€” returns 'hirschmann'. twin behavior with vendor, we love consistency 🫢
  • $device->os_ver() β€” returns the os version.
  • $device->mac() β€” returns the Interface MAC address of the switch (on the CPU pseudo interface). lowkey specific but we roll with it.
  • $device->model() β€” returns the device model, extracted from the description. detective work, but make it network engineering πŸ”
  • $device->serial() β€” returns the serial number.

🌟 Globals imported from SNMP::Info::Layer2 🌟

see documentation in "GLOBALS" in SNMP::Info::Layer2 for details. the lore is over there, bestie, go read it πŸ“–


🧚 TABLE METHODS 🧚

these ones don't hand you a single value β€” they return tables of information in the form of a reference to a hash. so much data, so organized, so main character 🌸

πŸ¦‹ Table Methods imported from SNMP::Info::Layer2 πŸ¦‹

see documentation in "TABLE METHODS" in SNMP::Info::Layer2 for details. again: the lore lives in Layer2, go get it πŸ’–


reminder: everything above came from the original page β€” no extra tips, no invented behavior, just the facts with extra sparkle ✨

and that's the whole page, bestie!! you understood it, you're literally a Hirschmann whisperer now πŸŽ€ this gorgeous little doc is from perl v5.40.1 and it's dated 2026-02-28. slay, bye πŸ’…πŸ’œ

πŸ“¦ where this page comes from