About the Command Line Interface (CLI) : CLI Options

CLI Options
There are four groups of commands relating to the CLI itself:
cli session commands change a setting only for the current CLI session. They do not affect any other sessions, and can be performed by any user at any time.
cli default commands change the defaults for the specified setting for all future CLI sessions of all users. They also change the setting for the current session from which they were executed, but not for any other currently active sessions. Since they change configuration, the user must be in configuration mode to run them, so they can only be run by admin privilege user.
Other cli commands that take one-time actions, rather than change a setting, and thus do not fall under the session or default umbrellas. For example, cli clear-history.
terminal commands are clones of a subset of the cli session commands, and are only present for ease-of-use.
Note! Some settings, such as the terminal length and width, are inherently session-specific, and there are no corresponding commands to set defaults. Also, some commands are only available in default form.
cli
clear-history
default
auto-logout <length_in_minutes>
paging enable
prefix-modes enable
progress
prompt
confirm-reload
confirm-reset
confirm-unsaved
empty-password
show
session
auto-logout <length_in_minutes>
paging enable
prefix-modes enable
terminal
length
type
width
Notes:
clear-historyEXEC command. Clears the command history of the current user.
default—Configure default CLI options for all future sessions.
auto-logout—Control the length of user inactivity required before the CLI logs a user out. The no variant disables the automatic logout feature.
paging enable—Enable or disable (with no) paging of CLI output. If paging is enabled, all command output, as well as all help text printed when the question mark (?) key is pressed, is displayed one screen at a time, using the same pager as the show log command. If the text to be displayed fits on a single screen, it is printed normally and the pager is not used. Note the abbreviated list of commands printed when <tab> is hit twice is not paged, even in the unlikely event that it does not fit on the screen. Additionally, if the CLI does not have a terminal (for example, it is being driven by a script), paging is disabled automatically regardless of the default setting, and cannot be re-enabled for this session. However, even in this case, the default setting can still be changed.
prefix-modes enable—Enable/disable the use of prefix modes in the CLI. If prefix modes are disabled, the commands that were used to enter prefix modes may or may not remain valid standalone commands, depending on the command. Changing this option's default affects this session as well as all future ones, but does not affect other sessions already in progress.
progress enable—Enable/disable progress updates for long operations.
prompt—Configure when the CLI should prompt you for input.
confirm-reload—Enable or disable (with no) confirmations of rebooting or halting the system using the reload command. This confirmation is in addition to any separate confirmations that may be displayed for unsaved changes.
confirm-reset—Enable or disable (with no) confirmations of resetting the entire system to its factory default state using the reset factory command.
confirm-unsaved—Enable or disable (with no) confirmations of cases where you might accidentally lose unsaved changes. Currently, this is just for the reload [halt] command; other cases where you might lose configuration are some of the configuration commands, which have no confirmations since they are explicitly for configuration.
empty-passwordEnable or disable (with no) prompting for a password in certain cases where a password was permitted but the user did not specify one. Mainly, this applies to pseudo-URLs of the form scp://username:password@hostname/path/filename where the :password part was omitted. If the prompt is enabled, the CLI asks for a password to be entered. If the prompt is disabled, the CLI assumes there is no password. Note if you only eliminate the password itself but leave the colon (:), this is treated as an explicit declaration that there is no password, and there is no prompt regardless of this setting.
show config-hidden enable—Enable or disable (with no) viewing hidden commands with show config commands.
sessionEXEC commands. Configure CLI options for this session only.
auto-logout—Control the length of user inactivity required before the CLI automatically logs a user out. The no variants of this command disable the automatic logout feature.
paging enable—Enable or disable (with no) paging of CLI output. See default paging enable comand description above for details.
prefix-modes enable—Enable or disable (with no) the use of prefix modes in the CLI. If prefix modes are disabled, the commands that were used to enter prefix modes may or may not remain valid standalone commands, depending on the command. Changing this option's default affects this session as well as all future ones, but does not affect other sessions already in progress.
progress enable—Enable/disable progress updates for long operations.
terminal—Set terminal parameters.
width and length—Override the auto-detected size of the terminal. This is useful mostly when the size could not be auto-detected and the CLI is using the default 80x24. These settings are persistent only for the current CLI session. They are also lost if the terminal is resized and the CLI is able to auto-detect its new size.
type <type>—Set the type of the terminal. The no variants clear the terminal setting, which causes the session to be treated as a ‘dumb’ terminal.
show cli
Display CLI settings: the inactivity timeout, whether or not paging is enabled, the terminal size and type. For settings which have configured defaults, both those and the current session settings are displayed.
 

Report an Error
Media Flow Controller Administrator's Guide and CLI Command Reference
Copyright © 2010 Juniper Networks, Inc.