Wireless Access

New Contributor

Querying a User Status with MAC address


I'm using the ArubaOS XML API to check on which wifi my users are connected. For this purpose, I use the user_query command. Is there a way to use this command with only the MAC address (without passing the IP address) ?


I use the following command : curl -vikd "xml=<aruba command="user_query"><macaddr>xx:xx:xx:xx:xx:xx</macaddr><key>softcom</key><authentication>cleartext</authentication><version>1.0</version></aruba>" -H "Content-Type: application/xml" https://xxx.xxx.x.xxx:4343/auth/command.xml

Which returns an "unknown user" error.


According to the documentation, the IP address is required but I would like to know if there is a workaround or a configuration trick to solve my issue.


Thanks in advance.

Valued Contributor II

Re: Querying a User Status with MAC address

Hi Friend,


Try with this,


xml=<aruba command="user_query">
<authentication>MD5|SHA-1|cleartext</authentication> #select any one


Please refer KB article 1399 


Hope got your answer, if not please feel free to come back for any further assistance :)

Venu Puduchery,
[Is my post helped you ? Give Kudos :) ]
Guru Elite

Re: Querying a User Status with MAC address

The command runs in the context of the user-table so unfortunately you must specify an IP address. 

Tim Cappalli | Aruba Security
@timcappalli | timcappalli.me | ACMX #367 / ACCX #480
New Contributor

Re: Querying a User Status with MAC address

Ok, that's what I thought...


Thank you for your answers!

Search Airheads
Showing results for 
Search instead for 
Did you mean: