EasyManua.ls Logo

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

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...
User Entries: 1/1
Logging Out a User
This XML request uses the user_logout command to revert the user to the initial role. This is only applicable to
captive portal users.
C:\Python27>python ArubaXMLDemo.py --switch-ip=192.0.2.1 --secret=aruba123 --command=user_
logout --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
n --secret: Shared secret key (sent as plain text)
n --command: XML API command
n --ip: IP address of the user
Switch Response
The switch processes using an XML format and sends the following response to the XML API server.
Prepared XML buf
---------------------------------
xml=<aruba command="user_logout">
<ipaddr>192.0.2.2</ipaddr>
<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
The output of the show user command displays the client information.
(host) #show user
Users
-----
IP MAC Name Role Age(d:h:m) Auth VPN link
---------- ------------ ------ ---- ---------- ---- --------
192.0.2.2 a4:5e:60:c3:10:59 John initial 00:00:06 Unauthenticated
AP name Roaming Essid/Bssid/Phy Profile Forward mode
------- -------- --------------- ------- ------------
ap225-sales Wireless ethersphere-wpa2/9c:1c:12:92:2e:f1/a-VHT-80
Type Host Name
---- ---------
User Entries: 1/1
AOS-W 6.5.3.x | User Guide External User Management | 1085

Table of Contents