[Contents] [Prev] [Next] [Index] [Report an Error]


Customizing the User Interface

You can access the CLI via a console connected directly to the system or via a Telnet session. This section 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.

    speed

host1(config)#line console 0
host1(config-line)#speed 14400

    terminal speed

host1#terminal speed 14400

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.

    terminal length

host1#terminal length 25

    terminal width

host1#terminal width 80

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.

    data-character-bits

host1(config)#line vty 1 3
host1(config-line)#data-character-bits 7

    terminal data-character-bits

host1#terminal data-character-bits 7

Configuring Login Conditions

You can issue the dsr-detect command to configure the system so that a data set ready (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.

host1(config)#line console 0
host1(config-line)#dsr-detect

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 DTE device, such as a terminal server, that supports this signal.

    dsr-detect

host1(config-line)#dsr-detect

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.
  2. Specify the time during which the user must enter the password. For example:
host1(config)#line console 0
host1(config-line)#login
host1(config-line)#boston
host1(config-line)#timeout login response 15

    timeout login response

host1(config-line)#timeout login response 15

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.
  2. Specify the time during which the user must enter information. For example:

host1(config)#line vty 0
host1(config-line)#exec-timeout 4192 13

    exec-timeout

host1(config-line)#exec-timeout 4192 13

Configuring CLI Messages

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

    banner

    host1(config)#banner motd x This is an MOTD banner x
    host1(config)#banner Y This is also an MOTD banner Y
    host1(config)#banner "Quotes make good delimiters"
    host1(config)#banner Xno space is required between the 
delimiter and the real banner textX
    host1(config)#banner b bad choice for a delimiter; 
everything after that second b was ignored b
    host1(config)#banner "This is one way\nto specify a 
multiple line banner"
    host1(config)#banner "This is another way to specify a
    Enter remainder of text message.  End with the character 
'"'.
    multiple line banner"

You can configure MOTD or exec banners, but not login banners, for the CLI to display on a per-line basis.

    exec-banner

    host1(config-line)#exec-banner

    motd-banner

    host1(config-line)#motd-banner

Monitoring the Console Settings

You can use the following commands to monitor console settings.

    show line console 0

host1#show line console 0
dsr-detect disabled
configured speed 9600, current speed 9600
exec-timeout never

    show terminal

host1#show terminal
Length: 25 lines, Width: 80 columns
data-character-bits: 8 bits per character
Speed: 9600 bits per second
dsr-detect disabled
exec-timeout never
exec-banner enabled
motd-banner enabled
login-timeout 30 seconds

[Contents] [Prev] [Next] [Index] [Report an Error]