EasyManua.ls Logo

Ruijie RG-S2600G-I Series - Page 1060

Ruijie RG-S2600G-I Series
1192 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CLI Reference SEM Configuration Commands
Guideline
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.
Examples
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
Related
commands
Command
Description
smart manager
applet
Define the command line based SEM policy.
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

Table of Contents

Related product manuals