Control the CLI Environment
To configure the CLI environment, use the CLI operational
setcommand:user@host>set cli ?Possible completions:complete-on-space Toggle word completion on spaceidle-timeout Set the cli maximum idle timeprompt Set the cli command prompt stringrestart-on-upgrade Set cli to prompt for restart after a software upgradescreen-length Set number of lines on screenscreen-width Set number of characters on a lineterminal Set terminal typeWhen 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 terminalcommand:user@host>set cli terminalterminal-typeThe
terminal-typecan 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-lengthcommand:user@host>set cli screen-lengthlengthSetting 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-widthcommand:user@host>set cli screen-widthwidthSet the CLI Prompt
The default CLI prompt is
user@host>. To change this, use theset cli promptcommand. If the prompt string contains spaces, enclose the string in quotation marks.user@host>set cli promptstring