Requiring Confirmation For Autoconfirm And Configure Commands; Requiring Confirmation For Specific Exec Mode Commands - Cisco ASR 5000 Administration Manual

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

Advertisement

Requiring Confirmation for autoconfirm and configure Commands

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
The following command sequence enables the commandguard feature:
configure
commandguard
end
With commandguard enabled the confirmation prompt appears as shown in the example below:
[local]
Are you sure? [Yes|No]:
[local]
To disable commandguard once it has been enabled, use the no commandguard command.
The status of commandguard is output in show configuration commands.

Requiring Confirmation for Specific Exec Mode Commands

A keyword for the commandguard command allows you to apply mandatory prompting for specified categories
of Exec mode configuration commands, even when autoconfirm is enabled.
The command syntax is as follows:
configure
commandguard exec-command exec_mode_category
end
Notes:
• exec-command exec_mode_category specifies one of the following categories of Exec mode configuration
ASR 5000 System Administration Guide, StarOS Release 21.1
46
If autoconfirm is enabled, commandguard will not take effect until autoconfirm is disabled in both Exec
and Global Configuration modes.
host_name
configure
#
yes
host_name
(config)#
commands.
◦ card
◦ clear
◦ copy
◦ debug
◦ delete
◦ filesystem
◦ hd
◦ reload
◦ rename
◦ shutdown
System Settings

Advertisement

Table of Contents
loading

Table of Contents