Users Guide

Table Of Contents
1079| External User Management Dell Networking W-Series ArubaOS 6.5.x| User Guide
l --role: User role
Controller Response
The controller processes using an XML format and sends the following response to the XML API server.
Warning: The specified mac address *must* match the user specified by --ip or the command will
fail.
Prepared XML buf
---------------------------------
xml=<aruba command="user_add">
<ipaddr>192.0.2.2</ipaddr>
<macaddr>a4:5e:60:c3:10:59</macaddr>
<role>logon</role>
<authentication>cleartext</authentication>
<key>aruba123</key>
<version>1.0</version>
</aruba>
---------------------------------
Sending XML request to https://192.0.2.1/auth/command.xml
Controller response status: 200
Response XML
-----------------------------------
<aruba>
<status>Ok</status>
<code>0</code>
</aruba>
-----------------------------------
Controller CLI
You can view the updated details of the user in the controller CLI.
(host) #show user-table
Users
-----
IP MAC Name Role Age(d:h:m) Auth VPN link AP name Roaming
Essid/Bssid/Phy Profile Forward mode Type Host Name
---------- ------------ ------ ---- ---------- ---- -------- ------- --- ---- --
------------- ------- ------------ ---- ---------
192.0.2.2 a4:5e:60:c3:10:59 logon 00:00:00
User Entries: 1/1
Querying a User
This XML request uses the user_query command to get the status and details of a user connected to your
network.
C:\Python27>python ArubaXMLDemo.py --switch-ip=192.0.2.1 --secret=aruba123 --command=user_
query --ip=192.0.2.2
The command sends the following information in the XML request to the controller:
l --switch-ip: IP address of the controller
l --secret: Shared secret key (sent as plain text)
l --command: XML API command
l --ip: IP address of the user
Controller Response
The controller processes using an XML format and sends the following response to the XML API server.
Prepared XML buf