Hi Xinhui,
Please refer the cli definition of confirm-commands knob:
#set system login class test ?
<snip>
> confirm-commands List of commands to be confirmed explicitly
As the cli definition suggests "confirm-commands" knob will help you to double confirm some commands before you actually commit/execute them.
Please refer following example it will make things clear for you:
test@chaos-re1> show configuration system login class test
permissions all;
confirm-commands request {
confirm-request;
}
I want to double check before executing any commands that contains "request", you can use any regex.
test@chaos-re1> show configuration system login user test
uid 2002;
class test;
authentication {
encrypted-password "$1$w9JT/1qk$wqUJrXn/j7jA03AzqxmTf/"; ## SECRET-DATA
}
test@chaos-re1> request chassis fpc slot 2 offline
confirm-request [yes,no] (no) no
test@chaos-re1# run request system storage cleanup
confirm-request [yes,no] (no) no
If this solves your question, please accept it as solution.
Thanks & Regards
Vishal Singh