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.
If autoconfirm is enabled, commandguard will not take effect until autoconfirm is disabled in both Exec
and Global Configuration modes.
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]
host_name
#
configure
Are you sure? [Yes|No]:
yes
[local]
host_name
(config)#
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
commands.
◦
card
◦
clear
◦
copy
◦
debug
◦
delete
◦
filesystem
◦
hd
◦
reload
◦
rename
ASR 5500 System Administration Guide, StarOS Release 21.5
31
System Settings
Requiring Confirmation for autoconfirm and configure Commands