Which EEM Applet Action Generates a Syslog Message?

300-435 By islever Editorial Last updated

Short answer

A Action N syslog priority informational msg 'TEXT' is the EEM applet action that emits a syslog message at informational severity with the supplied text.

Question

What is the EEM action for syslog generation?
  1. action N syslog priority informational msg 'TEXT' Correct Answer
  2. log
  3. print
  4. echo

Key Takeaways

Cisco EEM applets generate syslog messages through the action syslog command, which pairs a priority with a msg string. The valid form is action N syslog priority informational msg 'TEXT'; log, print, and echo are not EEM applet actions. The action writes to the device logging subsystem, subject to logging severity filters, rather than to the CLI.

Expert Analysis

A syslog entry has to be produced from an EEM applet, so the action keyword must be syslog with a priority and a msg argument, which is precisely what action N syslog priority informational msg 'TEXT' supplies.

If a generic log verb were accepted as an EEM action, option B would be viable

The only circumstance that would make B the correct action is a parser-level equivalence: if action N log were accepted by Cisco IOS XE EEM as another spelling of the syslog action, the platform would still need to infer a severity and a message string, or the grammar would need to allow log plus those arguments. Neither is true in the EEM applet action vocabulary. The action verb is syslog; it carries its own priority and mandatory msg parameters, and it is the verb that maps the applet statement to the device logging function. A keyword such as log belongs to other command families and to informal descriptions of logging, not to the EEM action set. The same reasoning rules out treating a Tcl output command as the answer: an EEM Tcl policy is a different policy type, and writing characters to a Tcl channel is not the same as submitting a message with a syslog severity to the logging process. Because the required output is specifically a syslog record with severity and text, the condition under which log would win—an accepted alias with the same severity and message semantics—is absent.

Option A matches the syslog action by combining a priority with a msg payload

The decisive fact is that the required output is a syslog record, not a CLI echo or a Tcl channel write, and Cisco EEM expresses that with the syslog action. In action N syslog priority informational msg 'TEXT', the N is the action label that orders the statement among the applet's actions; syslog selects the logging action; priority informational sets severity level 6; msg introduces the payload; and 'TEXT' is the literal text placed in the record. A label is not an event or a filter—it is the sequence key EEM uses when the applet fires. The priority field is optional in the broader command form, but when present it determines the severity that the logging subsystem evaluates; informational is valid and more verbose than warnings or errors. The msg keyword is what separates a real syslog generation action from a generic command that merely names logging. This option is therefore not merely the closest match; it is the only one that includes the action keyword, a legal severity, and the message keyword in one applet statement. The text can be static, and EEM can substitute supported variables into action arguments when dynamic content is needed, but the output path remains the syslog action. On IOS XE the message text is normally quoted when it contains spaces; the quoting style in the option is a CLI detail, not a change in the action semantics.

Each wrong verb fails at a different point in the applet action grammar

B is a bare verb with no action label, no priority, and no msg keyword, so even if the platform accepted a loosely named logging command it would not satisfy the structured action N syslog priority … msg … syntax; in the IOS XE EEM action vocabulary it is not a valid action, so the applet cannot reach the logging subsystem through it. C suggests writing text to an output stream, but print is not an EEM applet action and does not carry a syslog severity; a terminal print would not create the record the requirement asks for and would not be subject to logging destination or severity filtering. D is a shell-style echo, not an EEM verb; it returns or displays its argument locally and has no syslog header, priority, or logging process handoff. The alternatives therefore fail at different layers: B at action-name validation, C at output-channel selection, and D at command-language semantics. None of them supplies the priority-plus-msg structure that the syslog action requires, and none produces a message that the device logging subsystem can classify and forward.

Execution of the chosen action occurs when EEM runs the label-ordered action list

An applet is registered when its configuration is saved; the event detector watches for the trigger; when the trigger matches, EEM schedules the action list and executes actions in label order. At the statement labeled N, the syslog action hands the severity and message text to the device's logging function. That handoff is the point of effect: the applet does not write directly to a console or return a string to the CLI. The logging subsystem then applies its own configuration—console, monitor, buffer, or syslog host—and each destination's severity threshold decides whether an informational record is displayed or retained. The action can execute successfully while the message is filtered from a destination configured at warnings or errors. A subtle consequence is that a generated syslog message can itself match an event syslog pattern in another applet, so the pattern and the message text need to be chosen to avoid an unintended action loop. The severity in the action is not a replacement for global logging severity; both participate, which is why the action can fire yet leave no visible output on a destination whose threshold is too high.

Exam Strategy

When an EEM question asks for a specific output such as syslog, identify the action verb that names that output and then check whether the full statement includes its required arguments. Here, syslog needs a priority and a msg string, so a bare verb like log, print, or echo cannot qualify even if it sounds related. Apply the same pattern to other EEM actions: match the action keyword to the required output and verify the argument grammar before selecting.

Practice All 300-435 Questions

Access 150 questions with complete answers and detailed explanations.

View Full 300-435 Practice Test →

← Back to 300-435 Study Guide