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
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
Answer Area
Drag items
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
Community Discussion
No community discussion yet for this question.
