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
◦
shutdown
◦
task
◦
upgrade
•
You can enter multiple commandguard exec-command exec_mode_category commands.
•
All Exec mode commands beginning with the specified category word will prompt for confirmation,
regardless if autoconfirm is enabled.
ASR 5500 System Administration Guide, StarOS Release 21.4
49
System Settings
Requiring Confirmation for Specific Exec Mode Commands