350-401 exam dumps

350-401 practice question 330 of 631

Implementing Cisco Enterprise Network Core Technologies. Professional level, Cisco. Free question with the correct answer and a full explanation.

350-401 Question 330

Select 2

A 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?

  1. A

    event manager applet Collect_Interface_Errors event timer cron cron-entry "0 * * * *" action 1.0 cli command "show interfaces | include errors"

  2. 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"

  3. C

    event manager applet Collect_Interface_Errors event syslog pattern "%LINEPROTO-5-UPDOWN" action 1.0 cli command "show interfaces | include errors"

  4. 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"

  5. 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.

Timed practice exam

Take a 350-401 practice test under exam conditions

75 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam