wait for the completion of policy execution. And the returned value of 
the policy will determine whether to continue executing. If 0 is returned, 
stop running, while other values continue running. 
The returned value of the policy is specified by the action exit and it is 0 
by default. 
The  following  example  monitors  the  command  line  using  the 
synchronization mode, when user inputs the “write memory” yes, it will 
prohibit the user operation and prompt the user.   
Ruijie(config)#smart manager applet Test_1 
Ruijie(config-applet)#event  tag  monitor_cli  cli  pattern  "write 
memory" sync yes 
Ruijie(config-applet)#action 00 puts "can not do this" 
Ruijie(config-applet)#action 10 exit 0 
Ruijie(config-applet)#commit 
Ruijie(config-applet)#exit 
 
The  following  example  monitors  the  command  line  using 
synchronization  mode,  when  user  inputs  the  “line”  yes,  the  aaa 
new-model is executed before the execution of the user command. 
Ruijie(config)#smart manager applet Test_2 
Ruijie(config-applet)#event tag monitor_cli cli pattern "line" sync 
yes 
Ruijie(config-applet)#action 00 cli command "enable" 
Ruijie(config-applet)#action 10 cli command "aaa new-model" 
Ruijie(config-applet)#commit 
Ruijie(config-applet)#exit 
action switchover 
In SEM configuration mode, use this command to configure the policy action that executes the 
main/standby  switchover  forcibly.  The  no  form  of  this  command  deletes  the  action  with  the 
specified label.   
action label switchover 
no action label