Wireless Access

last person joined: 13 hours ago 

Access network design for branch, remote, outdoor, and campus locations with HPE Aruba Networking access points and mobility controllers.
Expand all | Collapse all

CLI Command to get usage per WLAN?

This thread has been viewed 6 times
  • 1.  CLI Command to get usage per WLAN?

    Posted Feb 14, 2019 05:11 PM

    Hi there,

     

    I'm running a few 7210s on ArubaOS v6.5.4.3.

    I'm inquiring to see if anyone knows a command to get the current total throughput for a WLAN through the CLI. This is also referred to as "Usage (bps)" when viewing in the GUI under Dashboard -> WLANs.  My goal is to pull this info off the controller and put it into a network dashboard tool I'm building.

     

    I've searched through the command reference guide and also looked seemingly everywhere in the CLI.

     

    I'm relatively new to Aruba but I would imagine that since the datapoint is available in the GUI, it must be accessible from the CLI as well.  Is my assumption incorrect?  If so, would the API be my next best bet for getting this information?

     

    Thanks!



  • 2.  RE: CLI Command to get usage per WLAN?



  • 3.  RE: CLI Command to get usage per WLAN?

    Posted Feb 15, 2019 02:05 PM

    Hi Michael,

     

    SNMP polling through snmp-walk may work - I can't believe I didn't think of that! I was so focused on building my tool using an ssh shell that I totally overlooked this possibility.  I will review the documents linked and see if I can find the appropriate OID for the data I'm seeking.



  • 4.  RE: CLI Command to get usage per WLAN?

    Posted Feb 19, 2019 02:45 AM

    Great l let us know 



  • 5.  RE: CLI Command to get usage per WLAN?

    EMPLOYEE
    Posted Feb 20, 2019 03:55 AM

     

    I'm relatively new to Aruba but I would imagine that since the datapoint is available in the GUI, it must be accessible from the CLI as well. Is my assumption incorrect?

    Yes, this can be an incorrect assumption.The webui dashboards use their own mechanism for gathering stats/information - there is not always a corresponding CLI output.

     

    That said, yes, use SNMP if you can - don't use snmpwalk however, it's more efficient (and less impact on the controller) to use specific snmpgets on the OIDs you want.

     



  • 6.  RE: CLI Command to get usage per WLAN?

    Posted Feb 20, 2019 12:24 PM

    @jgoff wrote:

     

    I'm relatively new to Aruba but I would imagine that since the datapoint is available in the GUI, it must be accessible from the CLI as well. Is my assumption incorrect?

    Yes, this can be an incorrect assumption.The webui dashboards use their own mechanism for gathering stats/information - there is not always a corresponding CLI output.

     

    That said, yes, use SNMP if you can - don't use snmpwalk however, it's more efficient (and less impact on the controller) to use specific snmpgets on the OIDs you want.

     


    Thanks Jgoff - I will have to compare the difference in speed in my python program that captures and parses the output. 

    I am looking into getting the mib file so I can find the specific OID (I have a valid support contract), but the downloads section of the Aruba support portal is currently serving a 404 error.

     

    Edit: the 404 error was because I just created my account and linked my service contract. Aruba support had to manually permit access to the downloads.



  • 7.  RE: CLI Command to get usage per WLAN?

    Posted Feb 20, 2019 02:26 PM

    So I've found the specific OID that I need to get the tx/rx rate per WLAN, but my next problem is that it doesn't appear possible to get the SSID via SNMP. All mentions of the SSID/ESSID  are "not-accessible" and when I query them with snmpwalk/get the controller responds with " No Such Object available on this agent at this OID".

     

    Aruba SNMP MIB.PNG

     

    I have scanned through the other MIBs for an available OID to get the ESSID string via SNMP and I can't seem to find it. I've also referenced the ArubaOS 6.x MIB guide.

     

    I've found that I can get the SSIDs per AP, but with hundreds of APs this isn't really an efficient method.

     

    Does anyone know the OID (or the MIB to look in) to get a list of all WLANs/SSIDs built on a 7210 (and their SNMP indexes?)

     

    I've checked the following MIB files:

    WLSX-WLAN-MIB, ARUBA-MIB, ARUBA-MGMT-MIB



  • 8.  RE: CLI Command to get usage per WLAN?

    EMPLOYEE
    Posted Feb 20, 2019 08:12 PM

    essid is always per AP becuase each AP can easily have different VAPs assigned to it. There are no (global) per ESSID stats availble, you will have to sum the stats per AP

     

    to the error your seeing, the MIB says "Note: Currently, this table doesn't return any data." - seems it's not in use.

     

    -- wlsxSSIDConfigTable contains the global configuration of the SSID
    
       wlsxSSIDConfigTable  OBJECT-TYPE
          SYNTAX       SEQUENCE OF WlanSSIDConfigEntry
          MAX-ACCESS   not-accessible
          STATUS       current
          DESCRIPTION
                    "
                    This Table lists the configuration of the SSID.
                    Note: Currently, this table doesn't return any data.
                    "
          ::= { wlsxSSIDConfigGroup 1}
    
       wlsxSSIDConfigEntry OBJECT-TYPE
              SYNTAX       WlanSSIDConfigEntry
              MAX-ACCESS   not-accessible
          STATUS       current
          DESCRIPTION
                 "AP Configuration Entry"
              INDEX {wlanAPMacAddress, wlanAPRadioNumber, wlanESSID, wlanESSIDIndex}
          ::= { wlsxSSIDConfigTable 1 }

    what is it exactly that you're trying to accomplish, there may be alternate ways to do it that we can advise.

     



  • 9.  RE: CLI Command to get usage per WLAN?

    Posted Feb 21, 2019 02:09 PM

    Thanks jgoff. What I'm working on is putting together a lightweight monitoring platform that contains wireless statistics.  I am querying the WLC to get total statistics for the network including all SSIDs that are built on the WLC, the number of current clients connected to each SSID, and the current bandwidth that's in use per SSID - not per AP.  I'm essentially looking to extract some of the data (either via CLI or SNMP) that can be seen on the Dashboard -> WLANs section of the Aruba WLC GUI.

     

    I can get a list of all SSIDs and the number of currently connected clients to each one through the CLI with "show ap essid" - but I'm having trouble getting the througput. for each SSID. I could easily sum the total bandwidth for each SSID with the following OID (.1.3.6.1.4.1.14823.2.2.1.5.3.3.1.1) which is the wlanESSID Rx Rate, but in order to do that, I'd have to figure out what the SNMP indexes are for each SSID.  From what I've been able to find, the SNMP indexes are "not accessible" via SNMP.

     

    If you are able to think of another way to get the data, that would be fantastic! Scripting it won't be a problem. Thanks for your help!



  • 10.  RE: CLI Command to get usage per WLAN?

    EMPLOYEE
    Posted Feb 21, 2019 10:09 PM

    hi david0

    sorry I'm maybe not quite getting what you mean by snmp indexes. The oid you mention has rx/tx/bytes per ssid by name, does that not give you what you need (rx/tx per ssid, not ap) ?

     

    example

    WLSX-WLAN-MIB::wlanESSIDRxPkts[STRING: ] = Counter32: 0
    WLSX-WLAN-MIB::wlanESSIDRxPkts[STRING: ap215] = Counter32: 2484258
    WLSX-WLAN-MIB::wlanESSIDRxPkts[STRING: v5-cp] = Counter32: 0
    WLSX-WLAN-MIB::wlanESSIDRxPkts[STRING: ap215-v5] = Counter32: 0
    WLSX-WLAN-MIB::wlanESSIDRxPkts[STRING: v1-7010-cp] = Counter32: 0
    WLSX-WLAN-MIB::wlanESSIDRxPkts[STRING: v5-cp-eapsim] = Counter32: 0
    WLSX-WLAN-MIB::wlanESSIDTxPkts[STRING: ] = Counter32: 0
    WLSX-WLAN-MIB::wlanESSIDTxPkts[STRING: ap215] = Counter32: 4129925
    WLSX-WLAN-MIB::wlanESSIDTxPkts[STRING: v5-cp] = Counter32: 0
    WLSX-WLAN-MIB::wlanESSIDTxPkts[STRING: ap215-v5] = Counter32: 0
    WLSX-WLAN-MIB::wlanESSIDTxPkts[STRING: v1-7010-cp] = Counter32: 0
    WLSX-WLAN-MIB::wlanESSIDTxPkts[STRING: v5-cp-eapsim] = Counter32: 0

    by the way, with respect to controller dashboards, if you use a browser inspector you will see that webui client sends a blob of xml that defines what it gets back, you could also write something that authenticates to the controller webui port and sends the same blob of xml.

     

     



  • 11.  RE: CLI Command to get usage per WLAN?

    Posted Feb 22, 2019 06:32 PM

    Hey jgoff,

     

    By SNMP indexes... normally a network device includes a table where you can cross reference the "human readable" form of the SNMP object to the "index number" that the device uses in it's SNMP database.

     

    For example - if you query the OID for "if index" on a network switch, it will typically respond with something like (note .1.2.3.4.5.6 is totally a bogus OID - but it represents the "if index" for a particular device):

     

    snmwalk -v2c -c public .1.2.3.4.5.6 10.1.1.1

    .1.2.3.4.5.6.1 = "Gig1/0/1"

    .1.2.3.4.5.6.2 = "Gig1/0/2"

    .1.2.3.4.5.6.3 = "Gig1/0/3"

    ...

     

    So, in this instance, you know that Gig1/0/1 has index 1, and Gig1/0/2 has index 2, and so on.  You could then query the "tx packets" for a single interface using a different OID... let's say it's .7.8.9.10. By appending the interface index to the end of the "tx packets" OID, you can get the data for a specific interface, like so:

    snmpget -v2c -c public .7.8.9.10.1 10.1.1.1

     

     

    Now, in the Aruba WLC side of things, the OID I shared is indeed giving me the correct stats, but without the SSID to index mapping, the output is nearly meaningless. Here are the first 2 lines of output that I get when I query the following OID (.1.3.6.1.4.1.14823.2.2.1.5.3.3.1.1.8)

    iso.3.6.1.4.1.14823.2.2.1.5.3.3.1.1.8.4.46.71.86.82 = Gauge32: 12585
    iso.3.6.1.4.1.14823.2.2.1.5.3.3.1.1.8.5.68.111.98.108.101 = Gauge32: 0

    So we know that iso.3.6.1.4.1.14823.2.2.1.5.3.3.1.1.8 is the Rx Rate for the WLAN, but we don't know what WLAN it is. I was assuming that each WLAN would have its own "index" like I shared in my hypothetical switch example, but I actually just figured that the rest of the OID is the SSID in decimal form... so I think I will be good now. If I convert .4.46.71.86.82 to ASCII it kind of gives me the SSID. There is a garbled character at the beginning of the string that I'll have to figure out how to deal with.  If only there was a query that told me the ASCII string for the SSIDs in the SNMP database.

     

    Thanks for your participation in my question jgoff - it's helped me brainstorm ideas and also work through the issue :)



  • 12.  RE: CLI Command to get usage per WLAN?
    Best Answer

    EMPLOYEE
    Posted Feb 23, 2019 06:15 AM

    hi David0

    ok so if you had said ifIndex I would have known what you meant - terminology mix up, no worries :)

     

    As you know, ifIndex has no meaning for the BSSID based OIDs, but they are easily deciperhable when you use the MIB and correct SNMP get/walk options.

     

    without MIB

    root@kali-246:/home/mibs/6.5.4.7# snmpwalk -v2c -c public 192.168.1.143 .1.3.6.1.4.1.14823.2.2.1.5.3.3.1.1.8              
    iso.3.6.1.4.1.14823.2.2.1.5.3.3.1.1.8.5.97.112.51.48.53 = Gauge32: 0
    iso.3.6.1.4.1.14823.2.2.1.5.3.3.1.1.8.9.118.49.45.112.115.107.45.118.56 = Gauge32: 0
    iso.3.6.1.4.1.14823.2.2.1.5.3.3.1.1.8.12.118.49.45.112.115.107.45.118.56.45.99.112 = Gauge32: 0
    iso.3.6.1.4.1.14823.2.2.1.5.3.3.1.1.8.18.119.101.114.119.101.114.119.101.114.119.101.114.119.101.114.119.101.114 = Gauge32: 0

    with MIB (-mALL -M.)

    root@kali-246:/home/mibs/6.5.4.7# snmpwalk -v2c -c public 192.168.1.143 -mALL -M. .1.3.6.1.4.1.14823.2.2.1.5.3.3.1.1.8
    WLSX-WLAN-MIB::wlanESSIDRxRate."ap305" = Gauge32: 0
    WLSX-WLAN-MIB::wlanESSIDRxRate."v1-psk-v8" = Gauge32: 0
    WLSX-WLAN-MIB::wlanESSIDRxRate."v1-psk-v8-cp" = Gauge32: 0
    WLSX-WLAN-MIB::wlanESSIDRxRate."werwerwerwerwerwer" = Gauge32: 0

    with MIB and option -O0X

    root@kali-246:/home/mibs/6.5.4.7# snmpwalk -v2c -c public 192.168.1.143 -mALL -M. -O0X .1.3.6.1.4.1.14823.2.2.1.5.3.3.1.1.8
    WLSX-WLAN-MIB::wlanESSIDRxRate[STRING: ap305] = Gauge32: 0
    WLSX-WLAN-MIB::wlanESSIDRxRate[STRING: v1-psk-v8] = Gauge32: 0
    WLSX-WLAN-MIB::wlanESSIDRxRate[STRING: v1-psk-v8-cp] = Gauge32: 0
    WLSX-WLAN-MIB::wlanESSIDRxRate[STRING: werwerwerwerwerwer] = Gauge32: 0

    you should be using the MIB and with few exceptions -O0X. Here's another example:

     

    root@kali-246:/home/mibs/6.5.4.7# snmpwalk -v2c -c public 192.168.1.143 -mALL -M. apCurrentChannel      
    WLSX-SWITCH-MIB::apCurrentChannel.'.L...`' = INTEGER: 6
    WLSX-SWITCH-MIB::apCurrentChannel.'.L...a' = INTEGER: 6
    WLSX-SWITCH-MIB::apCurrentChannel.'.L...b' = INTEGER: 6
    WLSX-SWITCH-MIB::apCurrentChannel.'.L...c' = INTEGER: 6
    WLSX-SWITCH-MIB::apCurrentChannel.'.L...p' = INTEGER: 149
    WLSX-SWITCH-MIB::apCurrentChannel.'.L...q' = INTEGER: 149
    WLSX-SWITCH-MIB::apCurrentChannel.'.L...r' = INTEGER: 149
    WLSX-SWITCH-MIB::apCurrentChannel.'.L...s' = INTEGER: 149

    versus the much nicer output of:

    root@kali-246:/home/mibs/6.5.4.7# snmpwalk -v2c -c public 192.168.1.143 -mALL -M. -O0X apCurrentChannel
    WLSX-SWITCH-MIB::apCurrentChannel[STRING: 90:4c:81:d5:ba:60] = INTEGER: 6
    WLSX-SWITCH-MIB::apCurrentChannel[STRING: 90:4c:81:d5:ba:61] = INTEGER: 6
    WLSX-SWITCH-MIB::apCurrentChannel[STRING: 90:4c:81:d5:ba:62] = INTEGER: 6
    WLSX-SWITCH-MIB::apCurrentChannel[STRING: 90:4c:81:d5:ba:63] = INTEGER: 6
    WLSX-SWITCH-MIB::apCurrentChannel[STRING: 90:4c:81:d5:ba:70] = INTEGER: 149
    WLSX-SWITCH-MIB::apCurrentChannel[STRING: 90:4c:81:d5:ba:71] = INTEGER: 149
    WLSX-SWITCH-MIB::apCurrentChannel[STRING: 90:4c:81:d5:ba:72] = INTEGER: 149
    WLSX-SWITCH-MIB::apCurrentChannel[STRING: 90:4c:81:d5:ba:73] = INTEGER: 149

    hope that helps

    -jeff

     

     

     



  • 13.  RE: CLI Command to get usage per WLAN?

    Posted Feb 25, 2019 02:08 PM

    Thanks jgoff. Importing the MIB gave me the perfect output that I can use for my polling script.  I've accepted your previous post as the solution to my question. Thanks for the help!