350-401 Question 332
Single answerYou are tasked with automating the collection of interface status on a Cisco router every time an interface goes down. Which Embedded Event Manager (EEM) applet configuration meets the requirement?
- A
event manager applet Interface_Down event syslog pattern "%LINK-5-CHANGED: Interface .* changed state to down" action 1.0 cli command "show ip interface brief"
- B
event manager applet Interface_Down event timer watchdog time 60 action 1.0 cli command "show ip interface brief"
- C
event manager applet Interface_Down event interface name GigabitEthernet0/1 state down action 1.0 cli command "show ip interface brief"
- D
event manager applet Interface_Down event policy-direct action 1.0 cli command "show ip interface brief"
Show answer and explanation
Correct answer: A
Explanation
The correct answer uses an EEM applet that listens for a syslog message indicating an interface has gone down. It then executes the 'show ip interface brief' command to collect the required data. This approach is both automated and specific to the scenario's requirements, unlike the other options that either lack automation, monitor only specific interfaces, or use inappropriate triggers.
- A. Correct.
Correct: This configuration uses a syslog event pattern to detect when any interface goes down and executes the 'show ip interface brief' command to collect interface status. It directly meets the requirements of the scenario.
- B. Incorrect.
Incorrect: This configuration uses a timer event to execute the command at fixed intervals, which does not meet the requirement to trigger the action specifically when an interface goes down.
- C. Incorrect.
Incorrect: This configuration is overly specific, as it monitors only a single interface (GigabitEthernet0/1) rather than all interfaces. It does not address the general requirement to automate the task for any interface going down.
- D. Incorrect.
Incorrect: This configuration uses a policy-direct event, which requires manual triggering and does not automate the process based on the interface-down event.