Setting The Switch's Shell Timeout; Displaying Vty Sessions; Clearing Vty Sessions - Cisco MDS 9000 series Command Reference Manual

Hide thumbs Also See for MDS 9000 series:
Table of Contents

Advertisement

Searching and Filtering CLI Output
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m

Setting the Switch's Shell Timeout

Use the exec-timeout command in configuration mode to configure the lifetime of all terminal sessions
on that switch. When the time limit configured by this command is exceeded, the shell exits and closes
that session. The syntax for this command from is exec-timeout minutes
The default is 30 minutes. You can configure different timeout values for a console or a virtual terminal
line (VTY) session. You can set the exec-timeout value to 0 to disable this feature so the session remains
active until you exit the switch. This change is saved in the configuration file.

Displaying VTY Sessions

Use the show line command to display all configured VTY sessions:
switch# show line
line Console:
line Aux:

Clearing VTY Sessions

Use the clear line command to close a specified VTY session:
switch# clear line Aux
Cisco MDS 9000 Family Command Reference
1-26
From the console:
switch(config)# line console
switch(config-console)# exec-timeout 60
Specifies the current console shell timeout to be 60 minutes.
From a VTY session (Telnet or SSH):
switch(config)# line vty
switch(config-line)# exec-timeout 60
Specifies the current console shell timeout to be 60 minutes.
Speed:
9600 bauds
Databits:
8 bits per byte
Stopbits:
1 bit(s)
Parity:
none
Modem In: Disable
Modem Init-String -
default : ATE0Q1&D2&C1S0=1\015
Statistics:
tx:5558511
Speed:
9600 bauds
Databits:
8 bits per byte
Stopbits:
1 bit(s)
Parity:
none
Modem In: Disable
Modem Init-String -
default : ATE0Q1&D2&C1S0=1\015
Hardware Flowcontrol: ON
Statistics:
tx:35
rx:5033958
Register Bits:RTS|CTS|DTR|DSR|CD|RI
rx:0
Register Bits:RTS|DTR
Chapter 1
CLI Overview
OL-8413-07, Cisco MDS SAN-OS Release 3.x

Advertisement

Table of Contents
loading

Table of Contents