350-401 · Question #425
An engineer must create an EEM applet that sends a syslog message in the event a change happens in the network due to trouble with an OSPF process. Which action should the engineer use? event manager
The correct answer is A. action 1 syslog msg "OSPF ROUTING ERROR". To send a syslog message from a Cisco EEM applet, the action syslog msg command is the correct syntax.
Question
An engineer must create an EEM applet that sends a syslog message in the event a change happens in the network due to trouble with an OSPF process. Which action should the engineer use? event manager applet LogMessage event routing network 172.30.197.0/24 type all
Options
- Aaction 1 syslog msg "OSPF ROUTING ERROR"
- Baction 1 syslog send "OSPF ROUTING ERROR"
- Caction 1 syslog pattern "OSPF ROUTING ERROR"
- Daction 1syslog write "OSPF ROUTING ERROR"
How the community answered
(32 responses)- A75% (24)
- B13% (4)
- C9% (3)
- D3% (1)
Why each option
To send a syslog message from a Cisco EEM applet, the `action syslog msg` command is the correct syntax.
In Cisco Embedded Event Manager (EEM), the `action syslog msg` command is the correct and standard syntax used to generate and send a custom syslog message containing the specified text string when the EEM applet's event trigger, such as a routing change, is met.
`syslog send` is not the correct EEM action keyword for generating a syslog message; the proper keyword to specify the message content is `msg`.
`syslog pattern` is not an EEM action keyword used for sending a message; the `pattern` keyword is typically used within an event detector to match specific text in a log message, not to generate new ones.
`syslog write` is not the correct EEM action keyword for generating a syslog message; the appropriate keyword to define the message content is `msg`.
Concept tested: Cisco EEM syslog action configuration
Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/eem/configuration/xe-3se/eem-xe-3se-book/eem-cli.html
Topics
Community Discussion
No community discussion yet for this question.