Wireless Access

last person joined: 15 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

Querying a User Status with MAC address

This thread has been viewed 0 times
  • 1.  Querying a User Status with MAC address

    Posted Dec 11, 2014 05:23 AM

    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.



  • 2.  RE: Querying a User Status with MAC address

    Posted Dec 11, 2014 06:35 AM

    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 :)



  • 3.  RE: Querying a User Status with MAC address
    Best Answer

    EMPLOYEE
    Posted Dec 11, 2014 06:41 AM
    The command runs in the context of the user-table so unfortunately you must specify an IP address. 


  • 4.  RE: Querying a User Status with MAC address

    Posted Dec 12, 2014 05:07 AM

    Ok, that's what I thought...

     

    Thank you for your answers!