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


Control the CLI Environment

To configure the CLI environment, use the CLI operational set command:

user@host> set cli ?
Possible completions:
  complete-on-space    Toggle word completion on space
  idle-timeout         Set the cli maximum idle time
  prompt               Set the cli command prompt string
  restart-on-upgrade   Set cli to prompt for restart after a software 

                        upgrade
  screen-length        Set number of lines on screen
  screen-width         Set number of characters on a line
  terminal             Set terminal type

When you log in to the router using ssh, or log in from the console when its terminal type has already been configured, your terminal's type, screen length, and screen width are already set, so you do not need to change them from the CLI.

Set the Terminal Type

To set the terminal type, use the set cli terminal command:

user@host> set cli terminal terminal-type 

The terminal-type can be one of the following: ansi, vt100, small-xterm, xterm.

Set the Screen Length

The default CLI screen length is 24 lines. To change the length, use the
set cli screen-length command:

user@host> set cli screen-length length 

Setting the screen length to 0 lines disables the display of output one screen at a time. Disabling this UNIX more-type interface can be useful when you are issuing CLI commands from scripts.

Set the Screen Width

The default CLI screen width is 80 columns. To change the length, use the
set cli screen-width command:

user@host> set cli screen-width width 

Set the CLI Prompt

The default CLI prompt is user@host>. To change this, use the set cli prompt command. If the prompt string contains spaces, enclose the string in quotation marks.

user@host> set cli prompt string 

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