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

Refer to the exhibit. An engineer builds an EEM script to apply an access list. Which statement must be added to complete the script?

    Correct Answer: C

    To complete the script, the statement 'event none' must be added. This configures the EEM applet without an automatic trigger, allowing it to be manually run on-demand. Since the access list '101' is already defined, the applet just needs to apply it when triggered manually. Including 'event none' ensures that the applet does not automatically execute based on a trigger event but can still be run manually if needed.

Discussion
ManvekOption: C

C is correct. The applet is missing the trigger event configuration. In this case there is no trigger event, so none must be selected. The access list is already configured, the applet only needs to apply it. event manager applet Block_Users event none action 1.0 cli command "enable" action 2.0 cli command "configure terminal" action 3.0 cli command "interface GigabitEthernet1" action 4.0 cli command "ip access-group 101 in" action 5.0 cli command "ip access-group 101 out" action 7.0 cli command "end"

a197cbfOption: C

The command "Event <triggering_event>" is needed so that the EEM applet can trigger off of something, such as "event syslog" to trigger off of a specific syslog pattern. If you don't want it to trigger, and just be manually run on-demand, use the "event none" command. In this example, by using "event none" it means this EEM applet will never trigger, but it allows for the applet to be manually run using the "event manager run Block_Users" command in privileged exec mode.

SeMo0o0oOption: C

C is correct

SeMo0o0oOption: C

C is correct

andyforregOption: C

Seems to be OK