EasyManua.ls Logo

Alcatel-Lucent AOS-W 6.5.3.x - Page 1083

Alcatel-Lucent AOS-W 6.5.3.x
1160 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
The command sends the following information in the XML request to the switch:
n --switch-ip: IP address of the switch
n --secret: Shared secret key (sent as plain text)
n --command: XML API command
n --ip: IP address of the user
n --mac: MAC address of the user
n --role: User role
Switch Response
The switch 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>
-----------------------------------
Switch CLI
You can view the updated details of the user in the switch 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 switch:
n --switch-ip: IP address of the switch
AOS-W 6.5.3.x | User Guide External User Management | 1083

Table of Contents