SNMP::...slLine(3pm)
π SNMP::...slLine(3pm) β the bestie edition π
Okay so this is the manual page for SNMP::Info::AdslLine, straight out of the User Contributed Perl Documentation section. Pull up a chair, grab a boba, we're reading a manpage together and honestly? It's giving niche-but-iconic. π«Ά
β¨ NAME β¨
SNMP::Info::AdslLine β the SNMP interface to the ADSL-LINE-MIB. That's it, that's the whole name section, slay.
π AUTHOR π
Alexander Hartmaier wrote this. Respect the author, periodt. π
π SYNOPSIS π
Here's the vibe β you let SNMP::Info figure out which subclass your device actually belongs to, bestie:
# Let SNMP::Info determine the correct subclass for you.
my $info = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myrouter',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $info->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
Note the or die "Can't connect to DestHost.\n"; β because if you can't reach the router, there is no plan B, we simply perish. π Also you literally copy these lines character for character, no editing, no improvising, iykyk.
πΈ DESCRIPTION πΈ
So SNMP::Info::AdslLine is a subclass of SNMP::Info and its whole personality is serving information about the adsl interfaces of a device. That's the gig. That's the assignment.
β οΈ Real talk bestie: use this or create it in a subclass of SNMP::Info. Do not use it directly. Like, don't come for this class on its own, it's not built for that. π
π¦ Inherited Classes π¦
none. β yes, literally none. It's a whole independent queen. π
π§ Required MIBs π§
ADSL-LINE-MIB
That's the one and only MIB requirement. Manifest it, load it, move on. β¨
β GLOBALS β
none β nothing here. Empty. A beautiful void. π
π₯ TABLE METHODS π₯
π ATUC channel table (adslAtucChanTable) π
This table provides one row for each ATUC channel. And here's the lore you need: ADSL channel interfaces are those ifEntries where ifType is equal to adslInterleave(124) or adslFast(125). Those two numbers? Iconic. Memorize them. π
$info->adsl_atuc_interleave_delay()β maps to("adslAtucChanInterleaveDelay")$info->adsl_atuc_curr_tx_rate()β maps to("adslAtucChanCurrTxRate")$info->adsl_atuc_prev_tx_rate()β maps to("adslAtucChanPrevTxRate")$info->adsl_atuc_crc_block_len()β maps to("adslAtucChanCrcBlockLength")
Four getters, all ATUC, all accounted for. No gatekeeping here. π
πΈ ATUR channel table (adslAturChanTable) πΈ
Same energy, different side of the wire: this table provides one row for each ATUR channel. And again, ADSL channel interfaces are those ifEntries where ifType is equal to adslInterleave(124) or adslFast(125). Yes bestie, that's the same rule as above β it's not a typo, it's just how the MIB do. π
$info->adsl_atur_interleave_delay()β maps to("adslAturChanInterleaveDelay")$info->adsl_atur_curr_tx_rate()β maps to("adslAturChanCurrTxRate")$info->adsl_atur_prev_tx_rate()β maps to("adslAturChanPrevTxRate")$info->adsl_atur_crc_block_len()β maps to("adslAturChanCrcBlockLength")
ATUC = one side, ATUR = the other side. Both tables, both fully represented. We ate. π₯
And that's the whole page, bestie β no cap. This was lovingly rendered from perl v5.40.1, dated 2026-02-28, under the title SNMP::...slLine(3pm). Go forth, query your ADSL lines, and stay hydrated. ππ¦π
π¦ 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