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"
The "event none" command allows EEM to identify an EEM policy that can be manually triggered.
https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/eem/configuration/xe-3s/eem-xe-3s-book/eem-policy-cli.html#:~:text=The%20event%20none%20command%20allows%20EEM%20to%20identify%20an%20EEM%20policy%20that%20can%20be%20manually%20triggered.
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.
This section is not available anymore. Please use the main Exam Page.350-401 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Manvek
Highly Voted 1 year, 10 months agoZeruz
Most Recent 8 months agoAbdullahMohammad251
8 months, 1 week agoa197cbf
11 months ago[Removed]
11 months, 4 weeks ago[Removed]
1 year agoandyforreg
1 year, 10 months ago