5-6
Software Configuration Guide—Release 12.2(25)SG
OL-7659-03
Chapter5 Checking Port Status an d Connectivity
Changing the Logout Timer
Changing the Logout Timer
The logout timer automatically disconnects a user from the switch when the user is idle for longer than
the specified time. To set the logout timer, perform this task:
Monitoring User Sessions
You can display the currently active user sessions on the switch using the show users command. The
command output lists all active console port and Telnet sessions on the switch.
To display the active user sessions on the switch, perform this task in privileged EXEC 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):
Switch# show users
Line User Host(s) Idle Location
* 0 con 0 idle 00:00:00
Interface User Mode Idle Peer Address
Switch# show users all
Line User Host(s) Idle Location
* 0 con 0 idle 00:00:00
1 vty 0 00:00:00
2 vty 1 00:00:00
3 vty 2 00:00:00
4 vty 3 00:00:00
5 vty 4 00:00:00
Interface User Mode Idle Peer Address
Switch#
To disconnect an active user session, perform this task:
Command Purpose
Switch# logoutwarning
number
Changes the logout timer value (a timeout value of 0 prevents idle
sessions from being disconnected automatically).
Use the no keyword to return to the default value.
Command Purpose
Switch# show users [all]Displays the currently active user sessions on the
switch.
Command Purpose
Switch# disconnect {console |
ip_addr
}Disconnects an active user session on the switch.