Exam 350-401 All QuestionsBrowse all questions from this exam
Question 607

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.

    Correct Answer:

Discussion
nushadu

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" !

papagussepi

As it says add an entry when a configuration change is made, should the second answer be "config t" instead on "enable".

Claudiu1

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.

Zizu007

provided answer is correct.

AndreasThornus

Thanks

SeMo0o0o

correct i'm not sure about the first one i feels like it should be CLI pattern :|

Tim1992

The 'event cli pattern' option is used to specify a CLI command that is run, followed by any action(s) defined.