nerdexam
Cisco

350-401 · Question #520

An engineer must create an EEM script to enable OSPF debugging in the event the OSPF neighborship goes down. Which script must the engineer apply?

The correct answer is C. Option C. An EEM script for OSPF debugging requires an event trigger for a neighbor state change to 'DOWN' via syslog, followed by an action to enable OSPF adjacency debugging.

Submitted by emma.c· Mar 6, 2026Automation

Question

An engineer must create an EEM script to enable OSPF debugging in the event the OSPF neighborship goes down. Which script must the engineer apply?

Exhibits

350-401 question #520 exhibit 1
350-401 question #520 exhibit 2

Options

  • AOption A
  • BOption B
  • COption C
  • DOption D

How the community answered

(22 responses)
  • A
    9% (2)
  • B
    5% (1)
  • C
    86% (19)

Why each option

An EEM script for OSPF debugging requires an event trigger for a neighbor state change to 'DOWN' via syslog, followed by an action to enable OSPF adjacency debugging.

AOption A

Without the actual content, this option is incorrect as it would likely lack the precise syslog event detection or the correct debugging action for OSPF adjacency issues.

BOption B

This option is incorrect as it probably contains an inappropriate event trigger or an unrelated action that would not address the OSPF neighborship down scenario with debugging.

COption CCorrect

The correct EEM script for this scenario would typically utilize an `event syslog` statement with a regular expression pattern that specifically matches the OSPF neighbor state transition to 'DOWN'. Once this syslog event is detected, the script would then execute a `action cli command` to enable `debug ip ospf adjacency`, providing diagnostic information for the failed neighborship.

DOption D

This option is incorrect as it would not contain the specific EEM commands to detect an OSPF neighbor down event via syslog and enable the relevant `debug ip ospf adjacency` command.

Concept tested: EEM for OSPF neighbor troubleshooting

Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/eem/configuration/15-mt/eem-15-mt-book.html

Topics

#EEM#OSPF events#event scripting#embedded automation

Community Discussion

No community discussion yet for this question.

Full 350-401 Practice