350-401 Question 330
Select 2A network engineer needs to automate the collection of interface error statistics on a Cisco router every hour. The data should be logged to a local file for later analysis. Using Embedded Event Manager (EEM), which of the following applet configurations will achieve this objective?
- A
event manager applet Collect_Interface_Errors event timer cron cron-entry "0 * * * *" action 1.0 cli command "show interfaces | include errors"
- B
event manager applet Log_Interface_Errors event timer cron cron-entry "0 * * * *" action 1.0 cli command "show interfaces" action 2.0 cli command "file append flash:/interface_errors.log"
- C
event manager applet Collect_Interface_Errors event syslog pattern "%LINEPROTO-5-UPDOWN" action 1.0 cli command "show interfaces | include errors"
- D
event manager applet Log_Interface_Errors event timer cron cron-entry "0 * * * *" action 1.0 cli command "show interfaces | include errors" action 2.0 cli command "file append flash:/interface_errors.log"
- E
event manager applet Collect_Interface_Errors event timer cron cron-entry "0 * * * *" action 1.0 syslog priority "info" msg "Interface errors collected"
Show answer and explanation
Correct answers: B, D
Explanation
To automate data collection every hour, an EEM applet must be configured with a timer-based event (e.g., cron) and an action to both collect data (e.g., 'show interfaces | include errors') and log it to a file (e.g., 'file append'). Options 2 and 4 meet these requirements by scheduling a cron job, collecting interface error statistics, and appending them to a local file for later analysis.
- A. Incorrect.
This applet gathers interface error data but does not perform logging or save the data to a file, which is required by the scenario.
- B. Correct.
This applet correctly schedules an hourly task, collects interface statistics, and appends the data to a local file for analysis, meeting the requirements of the scenario.
- C. Incorrect.
This applet triggers based on syslog messages rather than a scheduled timer, which does not meet the requirement of collecting data every hour.
- D. Correct.
This applet correctly schedules a cron job to collect interface error data and appends the results to a file, fulfilling the scenario's objective.
- E. Incorrect.
This applet generates a syslog message instead of collecting and saving interface error data, which does not satisfy the scenario requirements.