SNMP::...Netgear(3pm)
π SNMP::Info::Layer2::Netgear(3pm) π
okay bestie, welcome to the User Contributed Perl Documentation glow-up of SNMP::...Netgear(3pm). it's giving switch whisperer, no cap π
β¨ NAME β¨
SNMP::Info::Layer2::Netgear β the SNMP Interface to Netgear switches π¦
π AUTHOR π
Bill Fenner and Zoltan Erszenyi wrote this whole thing, iconic behavior fr fr.
The LLDP support was hacked in from Baystack.pm by Nic Bernstein <nic@onlight.com> π
πΈ SYNOPSIS πΈ
so like, here's the whole vibe. let SNMP::Info pick the right subclass for you, it literally knows:
# Let SNMP::Info determine the correct subclass for you.
my $netgear = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myswitch',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $netgear->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
π DESCRIPTION π
Bestie this module is your lil abstraction layer to all the configuration info you can get off a Netgear device through SNMP β¨ If you're looking for inherited methods, go read the docs of the inherited classes, k? They got you.
π§ Inherited Classes π§
SNMP::Info::Layer2
π Required MIBs π
π Inherited Classes' MIBs π
- all the MIBs listed in "Required MIBs" in
SNMP::Info::Layer2and its inherited classes π«
π GLOBALS π
these are the methods that hand you a scalar value straight from SNMP β
π Overrides π
$netgear->vendor()β returns'netgear'. that's it, that's the answer π$netgear->os()β returns'netgear'. yes, again. consistency queen π$netgear->model()β returns concatenation of$e_modeland$e_hwverif the Entity MIB is present, otherwise it returnsdescription(). lowkey depends on what your switch is serving up that day π$netgear->os_ver()β returnsOS Version. periodt.$netgear->serial()β returnsSerial Numberif available. heads up bestie: olderFSswitches have no accessible serial number, so don't come for me when it's not there π
π«Ά Global Methods imported from SNMP::Info::Layer2 π«Ά
- see the docs in "GLOBALS" in
SNMP::Info::Layer2for all the deets, iykyk π
π TABLE METHODS π
these ones hand you tables of info, in the form of a reference to a hash π§β¨
π₯ Overrides π₯
$netgear->interfaces()β uses thei_name()field. slay π
πΈ Table Methods imported from SNMP::Info::Layer2 πΈ
- see the docs in "TABLE METHODS" in
SNMP::Info::Layer2for the full rundown, main character reference energy π
no cap bestie, everything above is exactly as it was, i just gave it the glow-up it deserved π
π that's the whole page omg π
source/version flex just for you: this is perl v5.40.1, dated 2026-02-28, and the page is SNMP::...Netgear(3pm). bye babes, go SNMP some switches π
β¨π¦
π¦ 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