line vty exec-timeout

Sets the recurrent CLI idle timeout period.

Syntax

line vty exec-timeout timeout
no line vty exec-timeout

Command Default

If no value is specified, the timeout value is 10 minutes.

Parameters

timeout
Specifies the CLI session timeout period in minutes. The timeout value specifies the amount of time a CLI session can be idle before it logs you out. Valid values range from 0 through 136. The default is 10.

Modes

Global configuration mode

Usage Guidelines

The line vty exec timeout command is a recurrent command, applying to all login sessions. The terminal timeout command applies only to the current session.

Even if other keys are pressed during the timeout period, the only keystroke that prevents logout is Enter.

This command is supported only on the local device.

To restore the default timeout value of 10 minutes, enter no line vty exec-timeout.

Examples

The following example sets the terminal timeout to 60 minutes.

device(config)# line vty exec-timeout 60
device(config-line-vty)# exit
device(config)# exit
device# show running-config line vty
line vty 
exec-timeout 60 
!