The EEM applet detects multiple triggers that can be used to start a policy. Here is an example:
event manager applet test1
event tag n1 cli pattern "write mem.*" sync yes
event tag n2 cli pattern "copy run.* start.*" sync yes
trigger occurs 1
correlate event n1 or event n2
action 1.0 syslog msg "CONFIG SAV
2901# wr memory
Building configuration...
*Aug 3 00:24:09.868: %HA_EM-6-LOG: test1: CONFIG SAVED[OK]
SZ-2901#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]2901#
*Aug 3 00:24:23.832: %HA_EM-6-LOG: test1: CONFIG SAVED
No comments:
Post a Comment