exec-timeout

Use this command to set the interval the command interpreter waits for user input detected. That is, this sets the time a telnet session waits for an idle VTY session before it times out. A value of zero minutes and zero seconds (0 and 0) causes the session to wait indefinitely.

Use the no parameter to disable the wait interval.

Command Syntax

Copy
exec-timeout <0-35791> (<0-2147483>|)
no exec-timeout

Parameters

<0-35791>

Timeout value in minutes.

<0-2147483>

Timeout value in seconds.

Default

None

Command Mode

Line mode

Applicability

This command was introduced before OcNOS version 1.3.

Example

In the following example, the telnet session will timeout after 2 minutes, 30 seconds if there is no response from the user.

Copy
Router#configure terminal
Router(config)#line vty 23 66
Router(config-line)#exec-timeout 2 30