https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/eem/command/eem-cr-book/eem-cr-e1.html
EEM usually schedules and runs policies on the basis of an event specification that is contained within the policy itself. The event manager run command allows policies to be run manually. The event none command must first be configured to run the policy manually. The None Event Detector includes arguments when it publishes the none event. This command does not have a no form.
Router#sh run | s even
event manager applet ondemand
event none
action 1.0 syslog priority critical msg "This is bullshit"
Router#event manager run ondemand
Router#
*Apr 12 04:00:56.303: %HA_EM-2-LOG: ondemand: This is bullshit
Router#
The reason is that event none is not a valid event in Cisco EEM (Embedded Event Manager). The event none command doesn't exist as an event type for configuring an applet. To run an EEM applet manually, the event you should use is event manual, as in option D.
event manager applet ondemand: Creates an applet within the EEM registry with the name 'ondemand'.
event none: Specifies that the event type is none, so nothing will trigger the event, and it can only be run manually.
action 1.0: This is the first action to be executed (in this example, there is only one action).
syslog priority critical msg 'This is a message from ondemand': This action logs the message 'This is a message from ondemand' to the Syslog server with a severity level of critical.
A.
event manager applet ondemand
event none
action 1.0 syslog priority critical msg "This is a message from ondemand"
B.
event manager applet ondemand
action 1.0 syslog priority critical msg "This is a message from ondemand"
C.
event manager applet ondemand
event register action 1.0 syslog priority critical msg "This is a message from ondemand"
D.
event manager applet ondemand
event manual action 1.0 syslog priority critical msg "This is a message from ondemand"
The correct answer is:
A
correct, you will see the syslog message when you type this cli comand:
#event manager run ondemand
upvoted 1 times
...
...
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.
edg
Highly Voted 4 years, 9 months agoHugh_Jazz
3 years, 6 months agoIarn
Most Recent 3 weeks, 2 days agoRudisbel87
4 weeks, 1 day agoAbdullahMohammad251
8 months, 2 weeks ago[Removed]
11 months, 2 weeks agonushadu
2 years, 4 months agoxziomal9
3 years, 7 months agoyoutri
3 years ago