CLI Reference SEM Configuration Commands
Value of the local variable.
By default, no action is configured.
The local variable configured could have the same name with the global
variable. When a local variable having the same name as the global
variable is configured, the local variable will be used when such name is
referred.
The following example sets the variable in the policy with none event
type and sends the variable into the log.
Ruijie(config)#smart manager applet Test_1
Ruijie(config-applet)#event tag none_event none
Ruijie(config-applet)#action 00 set var_for_test "Test_1 running"
Ruijie(config-applet)#action 10 syslog msg "$var_for_test"
Ruijie(config-applet)#commit
Ruijie(config-applet)#exit
Define the SEM policy based on the command
line.
action syslog
Use this command to configure the policy action that records logs in SEM configuration mode.
The no form of this command deletes the action with the specified label..
action label syslog [priority priority-level] msg msg-text [facility string]
no action label syslog
(optional) set the level of logs.