DRAG DROP -
Drag and drop the snippets onto the blanks within the code to create an EEM script that adds an entry to a locally stored text file with a timestamp when a configuration change is made. Not all options are used.
DRAG DROP -
Drag and drop the snippets onto the blanks within the code to create an EEM script that adds an entry to a locally stored text file with a timestamp when a configuration change is made. Not all options are used.
yes, technically it works: ! event manager applet CONF_CHANGE event syslog pattern "SYS-5-CONFIG_I" action 1.0 cli command "enable" action 2.0 cli command "show clock | append flash:confsave.txt" action 3.0 syslog priority informational msg "Configuration changed" !
As it says add an entry when a configuration change is made, should the second answer be "config t" instead on "enable".
no, because "action cli command" EEM commands specify which commands should be executed towards the desired results. In this case, they are "enable" to enter Privileged EXEC and "show clock | append flash:ConfSave.txt" to write to file. Entering and exiting configuration mode will indeed generate that syslog message, but that is the trigger to EEM, not the actions that should be taken.
provided answer is correct.
Thanks
correct i'm not sure about the first one i feels like it should be CLI pattern :|
The 'event cli pattern' option is used to specify a CLI command that is run, followed by any action(s) defined.