SNMP::...iquiti(3pm)
π NAME π
SNMP::Info::Layer2::Ubiquiti β bestie, it's an SNMP Interface to Ubiquiti Access Points. That's the whole vibe. β¨
π AUTHOR π
Max Kosmach π (yes, the icon themself)
π SYNOPSIS π
okay so like, here's how you actually use it:
# Let SNMP::Info determine the correct subclass for you.
my $ubnt = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myswitch',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $ubnt->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
no cap, it just figures out which subclass you're in and tells you. main character energy fr. π¦
πΈ DESCRIPTION πΈ
It provides abstraction to the configuration information obtainable from Ubiquiti Access Point through SNMP. Basically it handles the talking-to-your-AP part so you don't have to. π
π Inherited Classes π
SNMP::Info::Layer2SNMP::Info::IEEE802dot11
β Required MIBs β
None. Not a single one. We love a low-maintenance moment. π
π¦ Inherited MIBs π¦
- See "Required MIBs" in SNMP::Info::Layer2 for its MIB requirements.
- See "Required MIBs" in SNMP::Info::IEEE802dot11 for its MIB requirements.
π GLOBALS π
These are methods that return scalar value from SNMP. Scalar. One value. Simple. Gorgeous. β¨
$ubnt->vendor()β Returns'ubiquiti'. That's it. That's the answer. π$ubnt->model()β Returns the model extracted from"dot11manufacturerProductName", with fallback to some complex logic for EdgeMax devices. (The EdgeMax fallback is lowkey doing the most, but it works. π)$ubnt->serial()β Serial Number.$ubnt->mac()β Bridge MAC address.$ubnt->os()β Returns"AirOS","UniFi"or"EdgeOS"depending on model. A true vibe check π«Ά$ubnt->os_ver()β Returns the software version extracted from"dot11manufacturerProductVersion", with fallback to description splitting for EdgeMax devices.
π Global Methods imported from SNMP::Info::Layer2 π
See "GLOBALS" in SNMP::Info::Layer2 for details.
π Global Methods imported from SNMP::Info::IEEE802dot11 π
See "GLOBALS" in SNMP::Info::IEEE802dot11 for details.
π₯ TABLE METHODS π₯
These are methods that return tables of information in the form of a reference to a hash. A hash. Multiple values. We're eating good tonight. π
π Overrides π
$ubnt->interfaces()β Uses thei_name()field. periodt.$ubnt->i_ignore()β Ignores interfaces with"CPU Interface"in them. Not the CPU interface's day, sorry babes. π
π Table Methods imported from SNMP::Info::Layer2 π
See "TABLE METHODS" in SNMP::Info::Layer2 for details.
π Table Methods imported from SNMP::Info::IEEE802dot11 π
See "TABLE METHODS" in SNMP::Info::IEEE802dot11 for details.
fr fr, that's the whole page. every flag, every fallback, every inherited class, all of it. nothing skipped, bestie. π«Ά
k bye, this was SNMP::...iquiti(3pm) from perl v5.40.1, dated 2026-02-28, living under User Contributed Perl Documentation. β¨ππ
π¦ 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