
20-8
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, and Catalyst 2980G Switches Software Configuration Guide—Release 8.2GLX
78-15908-01
Chapter 20 Checking Status and Connectivity
Monitoring User Sessions
Monitoring User Sessions
You can display the currently active user sessions on the switch using the show users command. The
command output displays all active console port and Telnet sessions on the switch.
To display the active user sessions on the switch, perform this task in privileged mode:
This example shows the output of the show users command when local authentication is enabled for
console and Telnet sessions (the asterisk [*] indicates the current session):
Console> (enable) show users
Session User Location
-------- ---------------- -------------------------
console
telnet sam-pc.bigcorp.com
* telnet jake-mac.bigcorp.com
Console> (enable)
This example shows the output of the show users command when authentication is enabled
for console and Telnet sessions:
Console> (enable) show users
Session User Location
-------- ---------------- -------------------------
console sam
telnet jake jake-mac.bigcorp.com
telnet tim tim-nt.bigcorp.com
* telnet suzy suzy-pc.bigcorp.com
Console> (enable)
This example shows how to display information about user sessions using the noalias keyword to display
the IP addresses of connected hosts:
Console> (enable) show users noalias
Session User Location
-------- ---------------- -------------------------
console
telnet 10.10.10.12
* telnet 10.10.20.46
Console> (enable)
To disconnect an active user session, perform this task in privileged mode:
This example shows how to disconnect an active console port session and an active Telnet session:
Console> (enable) show users
Session User Location
-------- ---------------- -------------------------
console sam
telnet jake jake-mac.bigcorp.com
Task
Command
Display the currently active user sessions on the
switch.
show users [noalias]
Task
Command
Disconnect an active user session on the switch.
disconnect {console | ip_addr}