Line Commands
Line Commands
clear line
To disconnect Telnet or SSH sessions, use the clear line Privileged EXEC Mode command.
Syntax
clear line {ssh | telnet}
Parameters
ssh—Disconnects SSH sessions.
telnet—Disconnects Telnet sessions.
Default Configuration
N/A
Command Mode
Privileged EXEC Mode
Example
switchxxxxxx# clear line telnet
Line Commands
1
Line Commands
exec-timeout
exec-timeout
To set the session idle time, during which the switch waits for user input before automatic logoff, use the
exec-timeout Line Configuration mode command.
To revert to the default setting, use the no form of this command.
Syntax
exec-timeout minutes
no exec-timeout
Parameters
minutes—The number of minutes. (Range: 0 to 65535, 0 means no timeout)
Default Configuration
The default idle time is 10 minutes.
Command Mode
Line Configuration mode
Example
The following example sets the idle time for Telnet sessions to 20 minutes:
switchxxxxxx(config)# line telnet
switchxxxxxx(config-line)# exec-timeout 20
line
To identify a specific line for configuration and enter the Line Configuration command mode, use the line
Global Configuration mode command.
Syntax
line {console | ssh | telnet}
Parameters
console—Specifies the terminal line mode.
telnet—Specifies the switch as a virtual terminal for remote access (Telnet).
ssh—Specifies the switch as a virtual terminal for secured remote access (SSH).
Command Mode
Global Configuration mode
Line Commands
2
Line Commands
password-thresh
Example
The following example configures the switch as a virtual terminal for remote access (Telnet):
switchxxxxxx(config)# line telnet
switchxxxxxx(config-line)#
password-thresh
To set the login password intrusion threshold, use the password-thresh Line Configuration mode command.
Syntax
password-thresh value
Parameters
value—The number of allowed password attempts. (Range: 0 to 120, 0 indicates no threshold)
Default Configuration
The default threshold value is 0, which indicates no threshold.
Command Mode
Line Configuration mode
Example
switchxxxxxx(config)# line console
switchxxxxxx (config-line)# password-thresh 10
show line
To show the line parameters, use the show line Privileged EXEC mode command.
Syntax
show line [console | telnet | ssh]
Parameters
console—(Optional) Displays the console configuration.
telnet—(Optional) Displays the Telnet configuration.
ssh—(Optional) Displays the SSH configuration.
Default Configuration
If the line is not specified, all line configuration parameters are displayed.
Line Commands
3
Line Commands
silent-time
Command Mode
Privileged EXEC mode
Example
The following example displays all line configuration parameters:
switchxxxxxx# show line
Console ==============================
Baudrate : 9600
Session Timeout : 10 (minutes)
History Count : 128
Password Retry : 3
Silent Time : 0 (seconds)
Telnet ===============================
Telnet Server : enabled
Session Timeout : 0 (minutes)
History Count : 128
Password Retry : 3
Silent Time : 0 (seconds)
SSH ==================================
SSH Server : disabled
Session Timeout : 10 (minutes)
History Count : 128
Password Retry : 3
Silent Time : 0 (seconds)
silent-time
To set the login fail silent time, use the silent-time Line Configuration mode command.
Syntax
silent-time value
Parameters
value—The number of seconds to disable the console after login failure. (Range: 0 to 65535. 0 indicates no
silent-time)
Default Configuration
No silent time
Command Mode
Line Configuration mode
Example
switchxxxxxx(config)# line console
switchxxxxxx (config-line)# silent-time 10
Line Commands
4
Line Commands
speed
speed
To set the console port baud rate, use the speed Line Configuration mode command.
To revert to the default setting, use the no form of this command.
Syntax
speed bps
no speed
Parameters
bps—The baud rate in bits per second (bps). Possible values are 2400, 4800, 9600, 19200, 38400, 57600, and
115200 bps.
Default Configuration
The default console port baud rate is 9600 bps.
Command Mode
Line Configuration mode
User Guidelines
The configured speed is applied when autobaud is disabled. This configuration applies to the current session
only.
Example
The following example sets the console baud rate to 115200 bps:
switchxxxxxx(config)# line console
switchxxxxxx(config-line)# speed 115200
Line Commands
5
Line Commands
speed
Line Commands
6