Wireless Access

Reply
vr
New Contributor
Posts: 2
Registered: ‎12-11-2014

Querying a User Status with MAC address

Hi,

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
Posts: 804
Registered: ‎12-01-2014

Re: Querying a User Status with MAC address

Hi Friend,

 

Try with this,

 

xml=<aruba command="user_query">
<ipaddr>IP-address_of_the_user</ipaddr>
<macaddr>MAC-address_of_the_user</macaddr>
<name>User_Name</name>
<key>Shared_Key</key>
<authentication>MD5|SHA-1|cleartext</authentication> #select any one
<version>1.0</version>
</aruba>

 

Please refer KB article 1399 

 

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

Cheers,
Venu Puduchery,
[Is my post helped you ? Give Kudos :) ]
Guru Elite
Posts: 8,456
Registered: ‎09-08-2010

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 TME
@timcappalli | timcappalli.me | ACMX #367 / ACCX #480
vr
New Contributor
Posts: 2
Registered: ‎12-11-2014

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: