nerdexam
Cisco

200-301 · Question #454

An engineering team asks an implementer to configure syslog for warning conditions and error conditions. Which command does the implementer configure to achieve the desired result?

The correct answer is C. logging trap 4. To configure a Cisco device to send syslog messages for warning and error conditions, the logging trap 4 command should be used.

Submitted by manish99· Mar 5, 2026IP Services

Question

An engineering team asks an implementer to configure syslog for warning conditions and error conditions. Which command does the implementer configure to achieve the desired result?

Options

  • Alogging trap 5
  • Blogging trap 2
  • Clogging trap 4
  • Dlogging trap 3

How the community answered

(20 responses)
  • A
    15% (3)
  • B
    5% (1)
  • C
    75% (15)
  • D
    5% (1)

Why each option

To configure a Cisco device to send syslog messages for warning and error conditions, the `logging trap 4` command should be used.

Alogging trap 5

Logging trap 5 corresponds to 'notice' messages, which would include warnings (level 4) and errors (level 3), but the prompt specifically asks for warning and error conditions, so setting it to 4 is more precise for the requested minimum level.

Blogging trap 2

Logging trap 2 corresponds to 'critical' messages, which would not include 'error' (level 3) or 'warning' (level 4) messages.

Clogging trap 4Correct

The `logging trap <severity-level>` command configures the minimum severity level of messages that the router sends to the syslog server. Syslog severity level 4 corresponds to 'warning' messages. Setting the trap level to 4 ensures that messages with severity levels 0 (emergency) through 4 (warning), which includes 'error' (level 3), are sent to the syslog server.

Dlogging trap 3

Logging trap 3 corresponds to 'error' messages, which would not include 'warning' (level 4) messages.

Concept tested: Cisco IOS syslog configuration

Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/esm/command/esm-cr-book/esm-cr-l1.html#wp1010317374

Topics

#syslog#logging trap#syslog severity

Community Discussion

No community discussion yet for this question.

Full 200-301 Practice