nerdexam
CiscoCisco

350-401 · Question #416

350-401 Question #416: Real Exam Question with Answer & Explanation

The correct answer is B: action 4.0 cli command "show process cpu sorted | append flash:high-cpu-file". To append the output of a show process cpu sorted command to a file using Cisco EEM, the action cli command is the correct method.

Submitted by priya_blr· Mar 6, 2026DOMAIN_LIST_NOT_PROVIDED_IN_PROMPT

Question

Refer to the exhibit. An engineer must create a script that appends the output of the show process cpu sorted command to a file. Which action completes the configuration?

Options

  • Aaction 4.0 syslog command "show process cpu sorted | append flash:high-cpu-file"
  • Baction 4.0 cli command "show process cpu sorted | append flash:high-cpu-file"
  • Caction 4.0 ens-event "show process cpu sorted | append flash:high-cpu-file"
  • Daction 4.0 publish-event "show process cpu sorted | append flash:high-cpu-file"

Explanation

To append the output of a show process cpu sorted command to a file using Cisco EEM, the action cli command is the correct method.

Common mistakes.

  • A. The syslog action in EEM is used for generating and sending syslog messages to a logging server or local buffer, not for executing arbitrary CLI commands on the device.
  • C. ens-event is not a recognized or standard EEM action keyword for executing CLI commands; EEM actions are well-defined and follow specific syntaxes.
  • D. publish-event is not a recognized or standard EEM action keyword for executing CLI commands; EEM actions are well-defined and follow specific syntaxes.

Concept tested. Cisco EEM CLI command execution

Reference. https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/eem/configuration/xe-3se/eem-xe-3se-book/eem-cli.html

Topics

#Cisco EEM#scripting#command output redirection#file management

Community Discussion

No community discussion yet for this question.

Full 350-401 PracticeBrowse All 350-401 Questions