Customizing the User Interface

You can access the CLI through a console connected directly to the system or through a Telnet session. This topic describes how you can customize the user interface. Some commands apply to the console, and some commands apply to vty lines that support Telnet sessions.

Setting the Console Speed

You can specify the console speed for only the current console session or for the current console session and all subsequent console sessions.

To configure the console speed:

Configuring the Display Terminal

You can specify the number of lines that appear on a terminal screen and the number of characters that appear on a line.

To configure the display terminal:

Specifying the Character Set

You can specify the number of data bits per character for the current vty session and for all subsequent sessions on the specified vty lines. This feature allows you to display international characters on the terminal’s screen.

You can use the default setting, 8, to view the full set of 8-bit international characters. Be sure that the software on other devices in the network also supports international characters. You can set the number of bits to 7 to view only characters in the standard ASCII set.

To set the number of bits per character on the terminal’s screen:

Configuring Login Conditions

You can issue the dsr-detect command to configure the system so that a DSR signal is required to log in to the console. If a session is in progress and the DSR signal is lost, the user is logged out automatically.

DSR is carried on pin 6 of the SRP module’s RS-232 (DB-9) connector. The DSR input must be connected to the DSR output of a modem or the DTR output of another data terminal device, such as a terminal server, that supports this signal.

To configure the DSR requirement:

Setting Time Limits for User Login

You can specify a time interval that the CLI waits for a user to provide a password when logging in to the console or a vty line. To do so:

  1. Access the line configuration mode using either the console or vty keyword.
    host1(config)#line console 0
  2. Set the time interval that the console or vty lines wait for the user to log in. If the interval passes and the user has not responded, the system closes the session or lines. The interval can be set in the range 0–300 seconds. A value of 0 means that there is no time limit during which the user must respond. The default value is 30 seconds.
    host1(config-line)#login host1(config-line)#timeout login response 15

    Use the no version to restore the default interval.

Setting Time Limits for User Input

You can specify a time interval that the CLI waits for user input on the console or vty lines. To do so:

  1. Access the line configuration mode using either the console or vty keyword.
    host1(config)#line vty 0
  2. Set the time interval that the console or vty lines wait for expected user input. If the interval passes and the user has not responded, the system closes the session or lines. The time limit can be set in the range 0–35791 minutes, and the setting of number of seconds is optional. By default, there is no time limit.
    host1(config-line)#exec-timeout 4192 13

    Use the no version to remove the time limit.

Configuring CLI Messages

You can configure text banners for the CLI to display to users at different times in the connection process.

You can use the banner command with the following keywords to configure MOTD, login, or exec banner to be displayed by the CLI:

If you do not specify an option in the banner command, the default behavior is to display the banner as an MOTD. The first character in the banner string must be repeated at the end of the string; these characters delimit the banner. The CLI prompts you if you fail to repeat the opening delimiter. All text following the second occurrence of the delimiter is ignored without warning. The delimiter is case sensitive. Banner text can span multiple lines. It is truncated after 1,024 characters.

When executing the banner command, you can insert \n where you want the banner text to split and start a new line. Alternatively, you can press Enter on the CLI when you want the text to break. In the second case, you will be prompted for the remainder of the text after you press Enter. To display a backslash as part of the message, it must be immediately preceded by another backslash, like this: \\. Do not use a backslash as a delimiter or end a line with a backslash.

When executing the banner command, you can insert a ? character inside the text of a banner, you must enter Ctrl+v before entering the ? character. Failure to do so may produce undesired results.

To configure MOTD, login, or exec banner to be displayed by the CLI:

To display an exec banner on a particular line after user authentication (if any) and before the first prompt of a CLI session:

To display an MOTD banner on a particular line when a connection is initiated:

Related Documentation