SNMP::...L_DSLAM(3pm)
π SNMP::Info::Layer2::ZyXEL_DSLAM π
okay so bestie, welcome to the User Contributed Perl Documentation corner of the manual pages, section 3pm, and today's main character is SNMP::Info::Layer2::ZyXEL_DSLAM. yes it's a mouthful. yes it slays. let's get into it π¦
β¨ NAME β¨
SNMP::Info::Layer2::ZyXEL_DSLAM β the SNMP interface to a ZyXEL DSLAM, no cap π
π AUTHOR π
Dmitry Sergienko (dmitry@trifle.net) β thank you for your service, icon π
πΈ SYNOPSIS πΈ
# Let SNMP::Info determine the correct subclass for you.
my $zyxel = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myhub',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $zyxel->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
like, you literally just let SNMP::Info do the vibes-check for you and it figures out which subclass your device belongs to. if it can't connect to DestHost? it dies. dramatic but valid π
π DESCRIPTION π
This gives you abstraction (fancy word, love that for us) to all the configuration info you can pull off a ZyXEL device through SNMP. and for all the methods it inherits? go read the inherited classes' documentation, bestie, they got the receipts π
𧬠Inherited Classes
SNMP::Info::Layer2
π Required MIBs
ADSL-LINE-MIB
πͺ Inherited Classes
- the MIBs listed in "Required MIBs" in
SNMP::Info::Layer2, plus the ones from their inherited classes. it's giving nesting dolls, fr fr π
π GLOBALS π
these are the methods that hand you a scalar value straight out of SNMP. little one-value treats β¨
π₯ Overrides
$zyxel->vendor()β returns'zyxel'. that's it. that's the whole method π«Ά$zyxel->os()β returns'zyxel'. again. consistent queen π$zyxel->os_ver()β culls the version out ofdescription().$zyxel->ip()β returns the IP Address of the DSLAM.
(it's pulling from "ipAdEntAddr")
$zyxel->model()β tries to cull the model out of the description field.$zyxel->layers()β returns00000011. no further questions π
π§ Global Methods imported from SNMP::Info::Layer2
- see the documentation in "GLOBALS" in
SNMP::Info::Layer2for the deets π
π TABLE METHODS π
π₯ Overrides
$zyxel->i_name()β returns a reference to a map of IIDs to port name ("ifDescr").$zyxel->i_description()β returns a reference to a map of IIDs to the human-set port description (that's the profile name, iykyk).
π¦ Table Methods imported from SNMP::Info::Layer2
- see the documentation in "TABLE METHODS" in
SNMP::Info::Layer2for the details, bestie π
and that's the whole page! this gorgeous thing is perl v5.40.1, dated 2026-02-28, and it lives under SNMP::...L_DSLAM(3pm). go forth and SNMP responsibly, you absolute legend πβ¨πΈ
π¦ 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