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 of description().
  • $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() β€” returns 00000011. no further questions πŸ’…

🧚 Global Methods imported from SNMP::Info::Layer2

  • see the documentation in "GLOBALS" in SNMP::Info::Layer2 for 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::Layer2 for 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