Telnet Session Commands
Use these M4500 CLI commands to open outbound Telnet sessions and configure inbound Telnet settings, including sessions, timeouts, and password threshold.
telnet
This command establishes a new outbound telnet connection to a remote host.
| Default | None |
| Format | telnet <ip-address|hostname> [port] [debug] [line] |
| Mode |
Privileged Exec User Exec |
| Parameter | Definition |
|---|---|
| <ip-address|hostname> | A hostname or a valid IPv4 address. |
| port | A valid decimal integer in the range of 0 to 65535, where the default value is 23. |
| debug | Display current enabled telnet options. |
| line | Set the outbound telnet operational mode as ‘linemode’, where by default, the operational mode is ‘character mode’. |
show line vty
This command displays telnet settings.
| Default | None |
| Format | show line vty |
| Mode | Privileged Exec |
Display Message
| Parameter | Definition |
|---|---|
| Remote Connection Login Timeout (minutes) | This object indicates the number of minutes a remote connection session is allowed to remain inactive before being logged off. A zero means there will be no timeout. May be specified as a number from 0 to 160. The factory default is 5. |
| Maximum Number of Remote Connection Sessions | This object indicates the number of simultaneous remote connection sessions allowed. The factory default is 5. |
| Allow New Telnet Sessions | Indicates that new telnet sessions will not be allowed when set to no. The factory default value is yes. |
| Telnet Server Admin Mode | The telnet server admin mode status. The factory default is enable. |
| Telnet Server Port | The listen port number of Telnet service. |
| Password Threshold | When the logon attempt threshold is reached on the console port, the system interface becomes silent for a specified amount of time before allowing the next logon attempt. (Use the silent time command to set this interval.) When this threshold is reached for Telnet, the Telnet logon interface closes. |
| Terminal Length | The columns per page for terminal vty port. |
line vty
This command is used to enter vty (Telnet) configuration mode.
| Default | None |
| Format | line vty |
| Mode | Global Config |
exec-timeout
This command sets the remote connection session timeout value, in minutes. A session is active as long as the session has been idle for the value set. A value of 0 indicates that a session remains active indefinitely. The time is a decimal value from 0 to 160.
| Default | 5 |
| Format | exec-timeout <1-160> |
| Mode | Line Vty |
Example:
(M4500-32C) #configure
(M4500-32C) (Config)#line vty
(M4500-32C) (Config-vty)#exec-timeout 10
no exec-time out
This command sets the remote connection session timeout value, in minutes, to the default.
| Format | no exec-timeout |
| Mode | Line Vty |
password-threshold
This command is used to set the password instruction threshold limited for the number of failed login attempts.
| Default | 3 |
| Format | password-threshold <0-120> |
| Mode | Line Vty |
Example:
(M4500-32C) #configure
(M4500-32C) (Config)#line vty
(M4500-32C) (Config-vty)#password-threshold 10
no password-threshold
This command sets the maximum value to the default
| Format | no password-threshold |
| Mode | Line Vty |
maxsessions
This command specifies the maximum number of remote connection sessions that can be established. A value of 0 indicates that no remote connection can be established. The range is 0 to 5.
| Default | 5 |
| Format | maxsessions <0-5> |
| Mode | Line Vty |
Example:
(M4500-32C) #configure
(M4500-32C) (Config)#line vty
(M4500-32C) (Config-vty)#maxsessions 5
no maxsessions
This command sets the maximum value to be 5.
| Format | no maxsessions |
| Mode | Line Vty |
server enable
This command enables/disables telnet server. If telnet server is enabled, all telnet sessions can be established until there are no more sessions available. If telnet server is disabled, all telnet sessions are closed.
| Default | Enabled |
| Format | server enable |
| Mode | Line Vty |
no server enable
This command disables telnet server. If telnet server is disabled, all telnet sessions are droped.
| Format | no server enable |
| Mode | Line Vty |
sessions
This command regulates new telnet sessions. If sessions are enabled, new telnet sessions can be established until there are no more sessions available. If sessions are disabled, no new telnet sessions are established. An established session remains active until the session is ended or an abnormal network error ends it.
| Default | Enabled |
| Format | sessions |
| Mode | Line Vty |
no sessions
This command disables telnet sessions. If sessions are disabled, no new telnet sessions are established.
| Format | no sessions |
| Mode | Line Vty |
telnet sessions
This command regulates new outbound telnet connections. If enabled, new outbound telnet sessions can be established until it reaches the maximum number of simultaneous outbound telnet sessions allowed. If disabled, no new outbound telnet session can be established. An established session remains active until the session is ended or an abnormal network error ends it.
| Default | Enabled |
| Format | telnet sessions |
| Mode | Global Config |
no telnet sessions
This command disables new outbound telnet connections. If disabled, no new outbound telnet connection can be established.
| Format | no telnet sessions |
| Mode | Global Config |
telnet maxsessions
This command specifies the maximum number of simultaneous outbound telnet sessions. A value of 0 indicates that no outbound telnet session can be established.
| Default | 5 |
| Format | telnet maxsessions <0-5> |
| Mode | Global Config |
no telnet maxsessions
This command sets the maximum value to be 5.
| Format | no telnet maxsessions |
| Mode | Global Config |
telnet exec-timeout
This command sets the outbound telnet session timeout value in minute.
| Default | 5 |
| Format | telnet exec-timeout <1-160> |
| Mode | Global Config |
no telnet exec-timeout
This command sets the remote connection session timeout value, in minutes, to the default.
| Format | no telnet exec-timeout |
| Mode | Global Config |
show telnet
This command displays the current outbound telnet settings.
| Default | None |
| Format | show telnet |
| Mode |
Privileged Exec User Exec |
Display Message
| Parameter | Definition |
|---|---|
| Outbound Telnet Login Timeout (in minutes) | Indicates the number of minutes an outbound telnet session is allowed to remain inactive before being logged off. A value of 0, which is the default, results in no timeout. |
| Maximum Number of Outbound Telnet Sessions | Indicates the number of simultaneous outbound telnet connections allowed. |
| Allow New Outbound Telnet Sessions | Indicates whether outbound telnet sessions will be allowed. |