The Perl Advent Calendar needs more articles for 2022. Submit your idea today!


SNMP::Info::Layer2::Aerohive - SNMP Interface to Aerohive / Extreme access points


Eric Miller


 # Let SNMP::Info determine the correct subclass for you.
 my $aerohive = new SNMP::Info(
                          AutoSpecify => 1,
                          Debug       => 1,
                          DestHost    => 'myswitch',
                          Community   => 'public',
                          Version     => 2
    or die "Can't connect to DestHost.\n";

 my $class = $aerohive->class();
 print "SNMP::Info determined this device to fall under subclass : $class\n";


Provides abstraction to the configuration information obtainable from an Aerohive / Extreme wireless access point through SNMP.

Inherited Classes


Required MIBs


Inherited MIBs

See "Required MIBs" in SNMP::Info::Layer2 for its MIB requirements.


These are methods that return scalar value from SNMP.


Returns 'aerohive'.


Returns 'hiveos'.


Returns the serial number extracted from ahSystemSerial.


Returns the OS version extracted from sysDescr.


Returns the firmware version extracted from ahFirmwareVersion.


Returns the base mac address of the aerohive unit from an undocumented snmp oid. if this oid is not available it will walk all interfaces and return the lowest numbered mac address.


Returns the model extracted from sysDescr.



Returns 00000111. Layer 2 and Layer 3 functionality through proprietary MIBs.

Global Methods imported from SNMP::Info::Layer2

See "GLOBALS" in SNMP::Info::Layer2 for details.


These are methods that return tables of information in the form of a reference to a hash.


Returns reference to hash. SSID's recognized by the radio interface.


With the same keys as i_ssidlist, returns the Basic service set identification (BSSID), MAC address, the AP is using for the SSID.


Returns reference to hash. Current operating frequency channel of the radio interface.



Returns reference to hash. Current transmit power, in milliwatts, of the radio interface.



Returns radio interfaces.


Returns client radio interface MAC addresses.



Simulates bridge MIB by returning reference to a hash mapping i_index() to the interface iid.


Returns reference to hash of forwarding table entries port interface identifier (iid).


Returns reference to hash of forwarding table MAC Addresses.



Returns reference to hash of forwarding table entries VLAN ID.


Arp Cache Table Augmentation

The AP has knowledge of MAC->IP mappings for wireless clients. Augmenting the arp cache data with these MAC->IP mappings enables visibility for stations that only communicate locally.





Table Methods imported from SNMP::Info::Layer2

See "TABLE METHODS" in SNMP::Info::Layer2 for details.