Setting 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 offcommand:user@host>set cli restart-on-upgradeoffTo re-enable the prompt, use the
set cli restart-on-upgrade oncommand:user@host>set cli restart-on-upgradeonSetting 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-spacecommand:user@host>set cli complete-on-spaceoffDisabling complete-on-spaceuser@host>To re-enable the use of both space and tab characters for command completion, use the
set cli complete-on-space oncommand:user@host>set cli complete-on-spaceonEnabling complete-on-spaceuser@host>Displaying CLI Settings
To display the current CLI settings, use the
show clicommand:user@host>show cliCLI complete-on-space set to onCLI idle-timeout disabledCLI restart-on-upgrade set to onCLI screen-length set to 24CLI screen-width set to 80CLI terminal is 'ansi'Example: Controlling the CLI Environment
The following example shows how to change the default CLI environment:
user@host>set cli screen-length66Screen length set to 66user@host>set cli screen-width40Screen width set to 40user@host>set cli prompt"router1-san-jose > "router1-san-jose > show cliCLI screen length set to 66CLI screen width set to 40router1-san-jose >