2.1.25. exec-timeout

Syntax

exec-timeout <0-65535>

Parameter


<0-65535> Specify session timeout minutes. 0 means never timeout


Default

Default session timeout for all lines are 10 minutes.

Mode

Line Configuration

Usage

Use exec-timeout command to specify the session timeout value for CLI running on console, telnet or ssh service. When user login into CLI and do not do any action after session timeout will be logged out from the CLI session.

Example

This example shows how to change console session timeout to 15min , telnet session timeout to 20min and ssh session timeout to 25min.

Switch(config)# line console
Switch(config-line)# exec-timeout 15
Switch(config-line)# exit
Switch(config)# line telnet
Switch(config-line)# exec-timeout 20
Switch(config-line)# exit
Switch(config)# line ssh
Switch(config-line)# exec-timeout 25
Switch(config-line)# exit

This example shows how show line information.

Switch# show line
Console
------------------------------------------------------------------------
Session Timeout : 15 (minutes)
History Count : 128
Password Retry : 3

Silent Time : 0 (seconds)

Telnet

------------------------------------------------------------------------

Telnet Server : disabled
Session Timeout : 20 (minutes)
History Count : 128
Password Retry : 3
Silent Time : 0 (seconds)
SSH
------------------------------------------------------------------------
SSH Server : disabled
Session Timeout : 25 (minutes)
History Count : 128
Password Retry : 3
Silent Time : 0 (seconds)