Configuration Guide Basic Switch Management Configuration
Ruijie(Config-line)#exec-timeout 20
Configure the timeout for the accepted
connection. When the configured time is
due and there is no input, this connection
will be interrupted.
The connection timeout setting can be removed by using the no exec-timeout
command in the line configuration mode.
Ruijie# configure terminal //Enter the global configuration
mode.
Ruijie# line vty 0 //Enter the line configuration mode
Ruijie(config-line)#exec-timeout 20 //Set the timeout to 20min
Session Timeout
When there is no input for the session established with a remote terminal over
the current line within the specified time, the session will be interrupted and the
remote terminal becomes idle.
RGOS provides commands in the line configuration mode to configure the
timeout for the session set up with the remote terminal.
Ruijie(Config-line)#session-timeout
20
Configure the timeout for the session set up
with the remote terminal over the line. If
there is no input within the specified time,
this session will be interrupted.
The timeout setting for the session set up with the remote terminal over the line
can be removed by using the no exec-timeout command in the line
configuration mode.
Ruijie# configure terminal //Enter the global configuration
mode.
Ruijie(config)# line vty 0 //Enter the line configuration
mode
Ruijie(config-line)# session-timeout 20 //Set the session timeout to 20min
Executing the Commands in the Executable File in Batch
In system management, sometimes it is necessary to enter multiple
configuration commands to manage a function. It takes a long period of time to
enter all the commands on CLI, causing error or mission. To resolve this
problem, you can encapsulate all the commands in a batch file according to
configuration steps. Then, you can execute the batch file for configuration when
necessary.