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::Layer2
  • SNMP::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 the i_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