1SNMP::Info::Layer2::UbiUqsueirtiC(o3n)tributed Perl DocuSmNeMnPt:a:tIinofno::Layer2::Ubiquiti(3)
2
3
4

NAME

6       SNMP::Info::Layer2::Ubiquiti - SNMP Interface to Ubiquiti Access Points
7

AUTHOR

9       Max Kosmach
10

SYNOPSIS

12        # Let SNMP::Info determine the correct subclass for you.
13        my $ubnt = new SNMP::Info(
14                                 AutoSpecify => 1,
15                                 Debug       => 1,
16                                 DestHost    => 'myswitch',
17                                 Community   => 'public',
18                                 Version     => 2
19                               )
20           or die "Can't connect to DestHost.\n";
21
22        my $class = $ubnt->class();
23        print "SNMP::Info determined this device to fall under subclass : $class\n";
24

DESCRIPTION

26       Provides abstraction to the configuration information obtainable from
27       Ubiquiti Access Point through SNMP.
28
29   Inherited Classes
30       SNMP::Info::Layer2
31       SNMP::Info::IEEE802dot11
32
33   Required MIBs
34       None.
35
36   Inherited MIBs
37       See "Required MIBs" in SNMP::Info::Layer2 for its MIB requirements.
38
39       See "Required MIBs" in SNMP::Info::IEEE802dot11 for its MIB
40       requirements.
41

GLOBALS

43       These are methods that return scalar value from SNMP
44
45       $ubnt->vendor()
46           Returns 'ubiquiti'
47
48       $ubnt->model()
49           Returns the model extracted from "dot11manufacturerProductName",
50           with fallback to some complex logic for EdgeMax devices
51
52       $ubnt->serial()
53           Serial Number.
54
55       $ubnt->mac()
56           Bridge MAC address.
57
58       $ubnt->os()
59           Returns "AirOS", "UniFi" or "EdgeOS" depending on model.
60
61       $ubnt->os_ver()
62           Returns the software version extracted from
63           "dot11manufacturerProductVersion", with fallback to description
64           splitting for EdgeMax devices
65
66   Global Methods imported from SNMP::Info::Layer2
67       See "GLOBALS" in SNMP::Info::Layer2 for details.
68
69   Global Methods imported from SNMP::Info::IEEE802dot11
70       See "GLOBALS" in SNMP::Info::IEEE802dot11 for details.
71

TABLE METHODS

73       These are methods that return tables of information in the form of a
74       reference to a hash.
75
76   Overrides
77       $ubnt->interfaces()
78           Uses the i_name() field.
79
80       $ubnt->i_ignore()
81           Ignores interfaces with "CPU Interface" in them.
82
83   Table Methods imported from SNMP::Info::Layer2
84       See "TABLE METHODS" in SNMP::Info::Layer2 for details.
85
86   Table Methods imported from SNMP::Info::IEEE802dot11
87       See "TABLE METHODS" in SNMP::Info::IEEE802dot11 for details.
88
89
90
91perl v5.36.0                      2022-07-22   SNMP::Info::Layer2::Ubiquiti(3)
Impressum