SNMP::...scoAgg(3pm)
π SNMP::...scoAgg(3pm) π
okay bestie, welcome to SNMP::...scoAgg(3pm), straight out of the User Contributed Perl Documentation collection π«Ά this is the page for the Cisco aggregated-links glow-up, and yes we're doing the whole thing, every flag, every method, no skips β¨
π NAME π
SNMP::Info::CiscoAgg β SNMP Interface to Cisco Aggregated Links. that's the whole vibe. it's the SNMP::Info hookup for Cisco link aggregation. π
π AUTHOR π
the SNMP::Info Developers wrote this and honestly? they ate. π
β¨ SYNOPSIS β¨
here's the little intro spell so you can see it in action, no cap:
# 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";
not me letting AutoSpecify => 1 do the picking for me π it literally sniffs out which subclass your device belongs to and tells you, main character energy fr fr.
πΈ DESCRIPTION πΈ
so this class gives you access to Aggregated Links configuration on Cisco devices. it's giving "one big happy merge" because it pulls together Cisco PAgP info, Cisco proprietary info, and IEEE 802.3ad info all in one place. π¦
important bestie: use it, or create it, inside a subclass of SNMP::Info. do not use it directly. that's the rule, periodt.
𧬠Inherited Classes
SNMP::Info::IEEE802dot3adβ the family tree, we inherit from it π
π Required MIBs
like, you literally can't do this without them:
CISCO-PAGP-MIBCISCO-LAG-MIBCISCO-IF-EXTENSION-MIB
π₯ TABLE METHODS π₯
π« agg_ports
returns a HASH reference mapping from slave to master</puple>portβ¦ okay not that, it maps from slave to master port, for each member of a port bundle on the device. π
- Keys =
ifIndexof the slave ports - Values =
ifIndexof the corresponding master ports
slay, it's literally just a lookup table. π
π« agg_ports_cisco
this one implements the Cisco LAG info retrieval. it gets merged into the agg_ports data automatically, so you don't even have to ask nicely. π
heads up though: it will fetch all members of clagAggPortListInterfaceIndexList even if they are not running an aggregation protocol. yeah. all of them. annnnd breathe. π
π« agg_ports_pagp
implements the PAgP LAG info retrieval. also merged into agg_ports data automatically β¨ same energy, different protocol, we love consistency.
π« agg_ports_propvirtual
a version of SNMP::Info::Aggregate::agg_ports_ifstack that inspects only ports of type propVirtual. π
bestie, don't forget: you still need to use agg_ports_ifstack. this one is not a replacement, it's a plus-one. π
π« lag_members
mimics ad_lag_ports from SNMP::Info::IEEE802dot3ad β except it's based on ifindex instead of bp_index. iconic behaviour, tbh. π
π₯ OVERRIDES π₯
β agg_ports_lag
this will retrieve LAG ports based on dot3adAggPortSelectedAggID data. and then, you guessed it, it gets merged into agg_ports data. everything is merged into agg_ports, that's just the whole plot of this manpage. π«Ά
π Table Methods imported from SNMP::Info::IEEE802dot3ad π
see the documentation in SNMP::Info::IEEE802dot3ad for details. iykyk β the lore lives over there. π
π§ MUNGES π§
π¬ munge_port_ifindex
takes clagAggPortListInterfaceIndexList, uses the index as the master port, then returns all members as ifindex. π
it works with single or multiple slaves to a master. flexible queen. no cap. π β¨
kisses, this wasperl v5.40.1, dated2026-02-28, brought to you bySNMP::...scoAgg(3pm)ππ¦ go forth and aggregate responsibly, bestie π
π¦ 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