Configuring Cli Confirmation Prompts - Cisco ASR 5000 Series Administration Manual

Staros release 21.4
Hide thumbs Also See for ASR 5000 Series:
Table of Contents

Advertisement

Configuring CLI Confirmation Prompts

The date and time appear immediately after you execute the command.
Save the configuration as described in the Verifying and Saving Your Configuration chapter.
Configuring CLI Confirmation Prompts
A number of Exec mode and Global Configuration mode commands prompt users for a confirmation (Are
you sure? [Yes|No]:) prior to executing the command.
This section describes configuration settings that:
• Automatically confirm commands for the current CLI session (Exec mode) or for all CLI sessions and
• Requires confirmation prompting only for the Exec mode configure command and autoconfirm
• Selectively requires confirmation of Exec mode configuration commands.
Enabling Automatic Confirmation
You can use the autoconfirm command to disable confirmation prompting for configuration commands. The
autoconfirm command is available in the Exec mode and Global Configuration mode. Enabling the autoconfirm
feature automatically supplies a "Yes" response to configuration command prompts, including for critical
commands such as reload and shutdown. By default autoconfirm is disabled.
In the Exec mode, autoconfirm applies only to the current interactive CLI session.
In the Global Configuration mode, autoconfirm applies to all CLI sessions for all CLI users:
configure
autoconfirm
end
To disable autoconfirm once it has been enabled, use the no autoconfirm command.
Important
Autoconfirm is intended as an "ease-of-use" feature. It presumes that the answer to "Are you sure? [Y/N]"
prompts will be "Yes", and skips the prompt. Its use implies that the user is an expert who does not need these
"safety-net" prompts.
Requiring Confirmation for autoconfirm and configure Commands
You can require confirmation prompting for the autoconfirm (Exec mode and Global Configuration mode)
and configure (Exec mode) commands via the Global Configuration mode commandguard command.
Important
ASR 5500 System Administration Guide, StarOS Release 21.4
48
users (Global Configuration mode).
command.
If commandguard is enabled, autoconfirm will disable commandguard.
If autoconfirm is enabled, commandguard will not take effect until autoconfirm is disabled in both Exec
and Global Configuration modes.
System Settings

Advertisement

Table of Contents
loading

This manual is also suitable for:

Asr 5500

Table of Contents