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


Set CLI to Prompt after a Software Upgrade

By default, the CLI prompts you to restart after a software upgrade. To disable the prompt for an individual session, use the set cli restart-on-upgrade off command:

user@host> set cli restart-on-upgrade off

To re-enable the prompt, use the set cli restart-on-upgrade on command:

user@host> set cli restart-on-upgrade on

Set Command Completion

By default, you can type a space or tab to have the CLI complete a command. To have the CLI allow only a tab to complete a command, use the set cli complete-on-space command:

user@host> set cli complete-on-space off 
Disabling complete-on-space
user@host> 

To re-enable the use of both space and tab characters for command completion, use the set cli complete-on-space on command:

user@host> set cli complete-on-space on
Enabling complete-on-space
user@host>

Display CLI Settings

To display the current CLI settings, use the show cli command:

user@host> show cli 
CLI complete-on-space set to on
CLI idle-timeout disabled
CLI restart-on-upgrade set to on
CLI screen-length set to 24
CLI screen-width set to 80
CLI terminal is 'ansi' 

Example: Control the CLI Environment

The following example shows how to change the default CLI environment:

user@host> set cli screen-length 66
Screen length set to 66
user@host> set cli screen-width 40
Screen width set to 40
user@host> set cli prompt "router1-san-jose > "
router1-san-jose > show cli
CLI screen length set to 66
CLI screen width set to 40
router1-san-jose > 

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