Configuration Guide SEM Configuration
SEM detection of CLI
Networking requirements
Device A is connected with Tftp Server. Before executing "copy running-config
startup-config", Device A will backup the old configurations to the Tftp Server.
Network topology
Fig 7 Topology of CLI detection
Configuration tips
1) Create policy
2) Configure CLI event
3) Configure action
4) Submit policy configurations
Configuration steps
1) Configure Device A
a, Name the policy configured for Device A as "policy_a".
b, Configure a CLI event named "event_1" for policy_a to detect commands
containing the content of "copy running-config startup-config"; execute the policy to
use synchronization mode by using parameter "sync yes".
c, Configure multiple actions for policy_a, as shown below:
Enter privileged EXEC mode;
Execute "copy" command to backup configuration file.
d, Submit the policy
e, End policy editing
Ruijie# configure terminal
Ruijie(config)# smart manager applet policy_a
Ruijie(SEM-applet)# event tag event_1 cli pattern "copy running-config
startup-config" sync yes
Ruijie(SEM-applet)# action action_1 cli command "enable"