Operation Manual
Session Management Commands
Session Management Commands
19 – 451
To clear the session of user Natasha, type the following command:
MX-20# clear sessions network user Natasha
To clear the sessions of users whose name begins with the characters Jo, type the following
command:
MX-20# clear sessions network user
Jo*
To clear the sessions of all users on VLAN red, type the following command:
MX-20# clear sessions network vlan red
See Also
● show sessions on page 19-451
● show sessions network on page 19-454
show sessions
Displays session information and statistics for all users with administrative access to the MX, or
for administrative users with either console or Telnet access.
Syntax
show sessions [admin | console | telnet client]
Defaults
None.
Access
All, except for show sessions telnet client, which has enabled access.
History
Examples
To display information about all sessions, use the following command:
MX> show sessions
admin Displays sessions for all users with administrative access to the MX through a Telnet or
SSH connection or a console plugged into the switch.
console Displays sessions for all users with administrative access to the MX through a console
plugged into the switch.
telnet Displays sessions for all users with administrative access to the MX through a Telnet
connection.
telnet client Displays Telnet sessions from the CLI to remote devices.
Version 1.0 Command introduced.
Version 1.1 New option, client, added to display Telnet client sessions.
Version 2.0 New field added to list the type of administrative session.
Version 6.2 Added the ability to display all sessions