Configuration Guide SEM Configuration
Necessary information
The configuration of SEM policies may involve the configuration of different kinds of
detectors, actions and policies, as well as the environment variables to be used. Please
refer to "SEM Command Reference" for detailed configuration steps.
How to configure policy
The configuration of SEM policy can be divided into the following steps.
Create policy
Enter privileged EXEC mode
Ruijie# configure terminal
Enter global configuration mode
Ruijie(config)# smart manager applet
applet-name [class class-options]
Create policy and enter SEM configuration
mode.
applet-name is the specified policy name.
class parameter specifies the policy class.
To delete the policy, execute "no smart manager applet applet-name" command in the
global configuration mode.
Configuration example:
# Configure a policy named "policy_A" on the device, and then enter SEM configuration
mode.
Ruijie# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Ruijie(config)# smart manager applet policy_a
Ruijie(SEM-applet)#
A newly created policy or a policy being modified will not take effect
immediately. It will only come into effect after configuring event and
action and executing "commit" command.
Policy configurations which haven't been submitted can be rolled back
by executing "rollback" command.
A complete policy includes event and action. If no event is configured
for the policy, then the submission of policy will result in an error. If no
action is configured for the policy, the submission of policy may be
successful but there will be a prompt. Once the policy is triggered, it will
do nothing and end directly.