logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

       Eric Miller

Description

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

   InheritedClasses
       SNMP::Info::Layer2

   RequiredMIBsAH-SYSTEM-MIBAH-INTERFACE-MIBInheritedMIBs
       See "Required MIBs" in SNMP::Info::Layer2 for its MIB requirements.

Globals

       These are methods that return scalar value from SNMP.

       $aerohive->vendor()
           Returns 'aerohive'.

       $aerohive->os()
           Returns 'hiveos'.

       $aerohive->serial()
           Returns the serial number extracted from "ahSystemSerial" or defer to imported modules.

       $aerohive->os_ver()
           Returns the OS version extracted from "ahFirmwareVersion" or "sysDescr" as fallback.

       $aerohive->mac()
           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.

       $aerohive->model()
           Returns "ahDeviceMode", if that's not available the model is extracted from "sysDescr".

   Overrides
       $aerohive->layers()
           Returns 00000111. Layer 2 and Layer 3 functionality through proprietary MIBs.

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

Name

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

Synopsis

        # 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";

Table Methods

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

       $aerohive->i_ssidlist()
           Returns reference to hash. SSID's recognized by the radio interface.

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

       $aerohive->i_80211channel()
           Returns reference to hash.  Current operating frequency channel of the radio interface.

           "ahRadioChannel"

       $aerohive->dot11_cur_tx_pwr_mw()
           Returns reference to hash.  Current transmit power, in milliwatts, of the radio interface.

           "ahRadioTxPower"

       $aerohive->cd11_port()
           Returns radio interfaces.

       $aerohive->cd11_mac()
           Returns client radio interface MAC addresses.

   Overrides
       $aerohive->interfaces()
           Only  return  interfaces  which  have  an entry in ahIfName as well. This halts the creation of ghost
           interfaces.

       $aerohive->bp_index()
           Simulates bridge MIB by returning reference to a hash mapping i_index() to the interface iid.

       $aerohive->qb_fw_port()
           Returns reference to hash of forwarding table entries port interface identifier (iid).

       $aerohive->qb_fw_mac()
           Returns reference to hash of forwarding table MAC Addresses.

           "ahClientMac"

       $aerohive->qb_fw_vlan()
           Returns reference to hash of forwarding table entries VLAN ID.

           "ahClientVLAN"

   ArpCacheTableAugmentation
       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.

       $aerohive->at_paddr()
           "ahClientMac"

       $aerohive->at_netaddr()
           "ahClientIP"

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

perl v5.40.0                                       2024-11-09                  SNMP::Info::Layer2::Aerohive(3pm)

See Also