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::Layer2SNMP::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
- 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