exam questions

Exam 350-401 All Questions

View all questions & answers for the 350-401 exam

Exam 350-401 topic 1 question 332 discussion

Actual exam question from Cisco's 350-401
Question #: 332
Topic #: 1
[All 350-401 Questions]

Which method creates an EEM applet policy that is registered with EEM and runs on demand or manually?

  • 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'
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
edg
Highly Voted 4 years, 9 months ago
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.
upvoted 9 times
Hugh_Jazz
3 years, 6 months ago
Concur with edg, action none first, then event manager run to manually kick it off.
upvoted 2 times
...
...
Iarn
Most Recent 3 weeks, 2 days ago
Selected Answer: A
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#
upvoted 1 times
...
Rudisbel87
4 weeks, 1 day ago
Selected Answer: D
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.
upvoted 1 times
...
AbdullahMohammad251
8 months, 2 weeks ago
Selected Answer: A
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.
upvoted 1 times
...
[Removed]
11 months, 2 weeks ago
Selected Answer: A
A is correct
upvoted 1 times
...
nushadu
2 years, 4 months ago
Selected Answer: A
cisco_R5#sh runn | b event event manager applet boom event syslog pattern "UP" action 1.0 puts "logging directly to console" event manager applet ondemand event none action 1.0 syslog priority critical msg "Hello WORLD)))" ! end cisco_R5#event manager run ondemand cisco_R5# *Dec 20 17:41:10.545: %HA_EM-2-LOG: ondemand: Hello WORLD))) cisco_R5#
upvoted 2 times
...
xziomal9
3 years, 7 months ago
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
upvoted 3 times
youtri
3 years ago
correct, you will see the syslog message when you type this cli comand: #event manager run ondemand
upvoted 1 times
...
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago