exam questions

Exam 350-401 All Questions

View all questions & answers for the 350-401 exam

Exam 350-401 topic 1 question 408 discussion

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

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?

  • A. event manager applet ENABLE_OSPF_DEBUG
    event syslog pattern "%OSPF-5-ADJCHG: Process 6, Nbr 1.1.1.1 on Serial0/0 from FULL to DOWN" action 1.0 cli command "enable" action 2.0 cli command "debug ip ospf event" action 3.0 cli command "debug ip ospf adj" action 4.0 syslog priority informational msg "ENABLE_OSPF_DEBUG"
  • B. event manager applet ENABLE_OSPF_DEBUG
    event syslog pattern "%OSPF-5-ADJCHG: Process 5, Nbr 1.1.1.1 on Serial0/0 from LOADING to FULL" action 1.0 cli command "debug ip ospf event" action 2.0 cli command "debug ip ospf adj" action 3.0 syslog priority informational msg "ENABLE_OSPF_DEBUG"
  • C. event manager applet ENABLE_OSPF_DEBUG
    event syslog pattern "%OSPF-1-ADJCHG: Process 5, Nbr 1.1.1.1 on Serial0/0 from FULL to DOWN" action 1.0 cli command "debug ip ospf event" action 2.0 cli command "debug ip ospf adj" action 3.0 syslog priority informational msg "ENABLE_OSPF_DEBUG"
  • D. event manager applet ENABLE_OSPF_DEBUG
    event syslog pattern "%OSPF-5-ADJCHG: Process 5, Nbr 1.1.1.1 on Serial0/0 from LOADING to FULL" action 1.0 cli command "enable" action 2.0 cli command "debug ip ospf event" action 3.0 cli command "debug ip ospf adj" action 4.0 syslog priority informational msg "ENABLE_OSPF_DEBUG"
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
x3rox
Highly Voted 2 years, 3 months ago
Selected Answer: A
This is the correct explanation of why A is the correct answer: There are 4 options, but only 2 has "FULL to DOWN" which is what we are tying to catch. Out of these two only A begin the script with "enable" which is required in EEM because the applet assumes that the user is in EXEC mode, not privileged EXEC or config mode.
upvoted 22 times
a197cbf
10 months, 2 weeks ago
I also noticed once you get down to choices A or C (from the "FULL to DOWN" string), one has the log code of "OSPF-5" and one has it as "OSPF-1". From that, I know OSPF Adjacency change is not a severity level 1, it's a level 5, so at that point it seemed clear cut that the answer was A and not C.
upvoted 3 times
...
...
AbdullahMohammad251
Most Recent 8 months, 1 week ago
Selected Answer: A
In OSPF logs: 'LOADING to FULL' - this message means that the neighbor relationship has been fully established. 'FULL to DOWN' - neighbor adjacency has been shut down We need to enable OSPF debugging when the neighbor relationship goes down. STEPS: (1) Create an EEM applet named 'ENABLE_OSPF_DEBUG' (2) Define the event criteria that trigger the applet to run: 'FULL to DOWN' Syslog message shows up (3) Actions to be taken when the event is triggered: Enabling OSPF debugging for both OSPF events and OSPF adjacency events: Enter privilege exec mode ---> 'enable' Enable debugging for ospf events ----> 'debug ip ospf events' Enable debugging for ospf adjacency events ----> 'debug ip ospf adj' https://www.ciscopress.com/articles/article.asp?p=3100057&seqNum=4#:~:text=An%20EEM%20policy%20is%20an,that%20is%20written%20in%20Tcl.
upvoted 1 times
...
[Removed]
11 months, 1 week ago
Selected Answer: A
A is correct event manager applet ENABLE_OSPF_DEBUG event syslog pattern "%OSPF-5-ADJCHG: Process 6, Nbr 1.1.1.1 on Serial0/0 from FULL to DOWN" action 1.0 cli command "enable" action 2.0 cli command "debug ip ospf event" action 3.0 cli command "debug ip ospf adj" action 4.0 syslog priority informational msg "ENABLE_OSPF_DEBUG" Keywords: %OSPF-5-ADJCHG = 5 for Notifications from FULL to DOWN action 1.0 cli command "enable"
upvoted 1 times
...
ZanaRock23
1 year, 1 month ago
as mentioned its A reason : when ospf neighboring is down its "from FULL to DOWN" and shows as Notification message (%OSPF-5-ADJCHG) and yes the script has to go to enable then enters privilege's mode to execute those commands.
upvoted 1 times
...
myhdtv6
1 year, 9 months ago
Guys, other then the technicalities of OSPF, I took this question with the different prospect. 6 is the informational debug msgs right ?? I went with it straight, is that wrong ?
upvoted 1 times
CCAL
1 year, 2 months ago
7 is the informational debug msgs right
upvoted 1 times
...
...
ALOVEVIKS
1 year, 11 months ago
I have no proper output of this question, how to fix ?
upvoted 1 times
...
robi1020
2 years, 4 months ago
Selected Answer: A
It need to be "FULL to DOWN" is syslog 1st line
upvoted 3 times
...
Raipen24
2 years, 5 months ago
5 - notification 6-informational A is on 6 debug info
upvoted 4 times
HungarianDish_111
2 years, 1 month ago
debug is 7, informational is 6 (default). it sending a syslog message of priority level 6. https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/eem/command/eem-cr-book/eem-cr-a2.html
upvoted 4 times
...
...
Tacolicious
2 years, 5 months ago
Selected Answer: A
Only A&D enable a debug based on earlier events. So B&C are definitely wrong. Between A and D: A also mentions the OSPF neighborship going down, which D doesn't. So the correct answer here is A
upvoted 2 times
...
onkel_andi
2 years, 7 months ago
Selected Answer: A
A is correct https://www.cisco.com/c/en/us/support/docs/ios-nx-os-software/ios-xe-16/216091-best-practices-and-useful-scripts-for-ee.html
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