Requirement:Aruba controller running Aruba 6.4 and above
Solution:In the setup, I have logged into the controller using 3 different methods with the same username:
a. Console (serial cable)
b. SSH (IP address: 10.20.25.21)
c. Websession (IP address: 10.20.25.21)
We can see the administrative users logged into the controller using the command "#show loginsessions"
(master) #show loginsessions
Session Table
-------------
ID User Name User Role Connection From Idle Time Session Time
-- --------- --------- --------------- --------- ------------
1 admin root EIA-232 00:00:00 00:39:18
2 admin root 10.20.25.21 00:00:20 00:00:21
3 admin root 10.20.25.21 00:00:28 00:00:30
a. EIA-232 denotes serial / console connection.
b. Serial / console session ID is always going to be 1.
b. We can see only the IP address for SSH and websession.
Configuration:
To clear the websession, we can execute the command in the console window.
Below we clear session ID 2 which was for SSH session (denoted by telnet). After executing the command SSH window will close / logout.
(master) #clear loginsession 2
Telnet Session Killed By Console User
Below we clear session ID 3 which was for WebUI. After executing the command below, we will be logged out of the webUI OR will be get a login widow to authenticate again:
(master) #clear loginsession 3
WebUI session Killed By Console User.
Verification
If we try to execute the command on the SSH, we will see the error below:
(master) #show loginsessions
Session Table
-------------
ID User Name User Role Connection From Idle Time Session Time
-- --------- --------- --------------- --------- ------------
1 admin root EIA-232 00:01:56 00:41:14
2 admin root 10.20.25.21 00:00:00 00:02:17
3 admin root 10.20.25.21 00:00:29 00:02:26
(master) #clear loginsession 2
Command can be executed only on the Console
We cannot delete the console session as the session ID for console is always 1 and it is not allowed in "#clear loginsession" command:
(master) #clear loginsession ?
<id> Session id 2-32