On the Status: Active Users screen, an Administrator can see the current status as to which Users have active sessions on which ports - and (with Firmware V3.11 and later) then selectively terminate any sessions. Connection types telnet, SSH, raw TCP and unauthenticated telnet can be disconnected, however you cannot disconnect RFC2217 sessions.
The "Disconnect Sessions" buttons along the right hand side of the table listing active users disconnect all sessions from the Port they correspond to. However if the port is not set up in Console Server mode, the user will see a pop up error informing them that they need to configure the port as Console Server mode before they can connect and disconnect.
After the buttons have been pressed, the selected sessions will be disconnected, and the number of disconnect sessions will be displayed to the user.
To allow more detailed control of who to disconnect, there is a table at the bottom of the page with drop down lists for all connected users and all connected ports that allow the user to choose who do disconnect. So if you wish to disconnect the user 'tester' from all ports, choose 'tester' in the Users box, and All ports in the Ports box then hit the Disconnect Sessions button.
Note: The Active Users page shows a snapshot of the connected sessions, at the time indicated by the timestamp displayed at the top of the page. This page only shows the local console ports, and does not include any cascaded ports.
Disconnecting serial sessions from the command line
The pmusers command is used to query the portmanager for active user session, and the --disconnect option allows an admin user or root to disconnect console server sessions from the command line.
If the --disconnect option is specified, the pmusers command goes into disconnect mode where you can specify the users with -u, the ports with -l (by label) or -n (by name).
By default the command will prompt the user before actually disconnecting the matching sessions. This can be overriden with the --no-prompt argument.
Example: pmuser sessions:
# pmusers --disconnect
Disconnect all users from all ports? (y/n)
y
5 sessions were disconnected
# pmusers --disconnect -u robertw
Disconnect user robertw from all ports? (y/n)
y
1 session was disconnected
# pmusers --disconnect -u robertw -n 5
Disconnect user robertw from port 5 (BranchRouter01)? (y/n)
y
No sessions were disconnected
# pmusers --disconnect -n 5
Disconnect all users from port 5 (BranchRouter01)? (y/n)
y
2 sessions were disconnected
# pmusers --disconnect -u robertw -u pchunt -n 4 -n 6
Disconnect users robertw, pchunt from ports 4, 6? (y/n)
y
10 sessions were disconnected
# pmusers --disconnect -u tester --no-prompt
No sessions were disconnected
Comments
0 comments
Article is closed for comments.