SNMP::...ArubaCX(3pm)
π SNMP::Info::Layer3::ArubaCX β the vibe β¨
okay bestie, so this is SNMP::Info::Layer3::ArubaCX, a Perl module that gives you an SNMP interface to L3 devices running ArubaOS-CX. It's part of the User Contributed Perl Documentation, and honestly? She's serving. π
πΈ AUTHORS πΈ
- Jeroen van Ingen β the icon who wrote her π
β¨ SYNOPSIS β¨
no cap, the whole point is that SNMP::Info can pick the right subclass for you, so you don't even have to know who you're talking to:
# Let SNMP::Info determine the correct subclass for you.
my $cx = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myrouter',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $cx->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
that's it, that's the whole mood. she connects, she figures out what you are, she tells you. π¦
π«Ά DESCRIPTION π«Ά
She's a subclass for devices running ArubaOS-CX. If that's your switch, this is your girl.
π Inherited Classes
she gets her whole personality from these three:
SNMP::Info::Layer3SNMP::Info::IEEE802_BridgeSNMP::Info::IEEE802dot3ad
π§ Required MIBs
these MIBs are the bare minimum, fr fr, no MIBs no info:
ARUBAWIRED-FAN-MIBARUBAWIRED-VSF-MIBARUBAWIRED-POE-MIBARUBAWIRED-POWERSUPPLY-MIB
π Inherited Classes' MIBs
and her inherited classes got their own needs too, so don't forget them:
- See
SNMP::Info::Layer3for its own MIB requirements. - See
SNMP::Info::IEEE802_Bridgefor its own MIB requirements. - See
SNMP::Info::IEEE802dot3adfor its own MIB requirements.
π GLOBALS π
these are the methods that return scalar values straight from SNMP. little single facts about your device. obsessed.
$cx->stack_info()β if the device supports VSF stacking and is not in standalone mode, you get a string describing the switch family plus how many stack members there are. Example return value:'6300M (stack of 2)'. If VSF isn't supported at all, or if the device is VSF standalone, you getundefinstead. sad but true. π$cx->model()β returnsstack_info()if it's defined. if not, she falls back to the model from"entPhysicalModelName.1". and if that's also not set, she goes to"sysObjectID"as a last resort, stripping'arubaWiredSwitch'from the value. resourceful queen. π$cx->vendor()β returns the (lowercased!) value for"entPhysicalMfgName.1", or'aruba'if there's nothing to work with.$cx->os()β returns'arubaos-cx'. that's it. that's the whole function. iconic.$cx->os_ver()β returns the software version. either from"entPhysicalSoftwareRev.1", or extracted from"sysDescr".$cx->fan()β returns a string with status information for all fans listed in"ARUBAWIRED-FAN-MIB". keep those fans cool, bestie. π
πΈ Globals imported from SNMP::Info::Layer3
See documentation in SNMP::Info::Layer3 for details.
πΈ Globals imported from SNMP::Info::IEEE802_Bridge
See documentation in SNMP::Info::IEEE802_Bridge for details.
πΈ Globals imported from SNMP::Info::IEEE802dot3ad
See documentation in SNMP::Info::IEEE802dot3ad for details.
π TABLE ENTRIES π
these ones return tables of information β as a reference to a hash, naturally. so much data, so organized. π
$cx->peth_port_power()β power supplied by PoE ports, in milliwatts. ("arubaWiredPoePethPsePortAveragePower")
π Overrides
"agg_ports"β returns a HASH reference mapping from slave to master port for each member of a port bundle on the device. keys are theifIndexof the slave ports, values are theifIndexof the corresponding master ports. slay."v_name","qb_i_vlan","i_vlan_type","qb_v_egress","qb_cv_egress","qb_v_untagged","qb_cv_untagged"β all of these are overridden to return the VLAN data structures that you'd expect for a device that implements"Q-BRIDGE-MIB", except with data coming fromSNMP::Info::IEEE8021_Bridgeat PBB 1. same vibe, different source. β¨
π Table Methods imported from SNMP::Info::Layer3
See documentation in SNMP::Info::Layer3 for details.
π Table Methods imported from SNMP::Info::IEEE802_Bridge
See documentation in SNMP::Info::IEEE802_Bridge for details.
π Table Methods imported from SNMP::Info::IEEE802dot3ad
See documentation in SNMP::Info::IEEE802dot3ad for details.
okay that's the whole page, you're so welcome. π
this was perl v5.40.1, dated 2026-02-28, from the SNMP::...ArubaCX(3pm) page β go read it, love her, run her. bye 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