nerdexam
Cisco

350-401 · Question #1346

Drag and Drop Question An engineer wants a router to periodically check the reachability of several IP addresses that are stored in a text file named "server_list.txt" on the local flash of the device

The correct answer is timeout; foreach; ngmp; string map. The correct EEM (Embedded Event Manager) applet uses 'timeout' to set the ping wait time, 'foreach' to iterate through each IP address in the server_list.txt file, 'ngmp' (which refers to the 'ping' action using the CLI ping command within the applet scripting context), and 'stri

Submitted by yuriko_h· Mar 6, 2026Cisco IOS Automation and Programmability – Implement and troubleshoot Embedded Event Manager (EEM) applets for automated network monitoring and response

Question

Drag and Drop Question An engineer wants a router to periodically check the reachability of several IP addresses that are stored in a text file named “server_list.txt" on the local flash of the device. If the ping fails, a message must be logged. Drag and drop the command snippets from the right onto the boxes to complete the applet. Answer:

Exhibit

350-401 question #1346 exhibit

Answer Area

Drag items

event manager detectertesting maptimeoutwatchingforeachngmpstring map

Correct arrangement

  • timeout
  • foreach
  • ngmp
  • string map

Explanation

The correct EEM (Embedded Event Manager) applet uses 'timeout' to set the ping wait time, 'foreach' to iterate through each IP address in the server_list.txt file, 'ngmp' (which refers to the 'ping' action using the CLI ping command within the applet scripting context), and 'string map' to parse or manipulate the strings read from the file. Together, these snippets form a valid Tcl-based EEM applet that reads IPs from a file, pings each one with a timeout, and logs a message on failure.

Topics

#EEM#Embedded Event Manager#Tcl Scripting#Network Automation

Community Discussion

No community discussion yet for this question.

Full 350-401 Practice