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.
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)- A15% (3)
- B5% (1)
- C75% (15)
- D5% (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.
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.
Logging trap 2 corresponds to 'critical' messages, which would not include 'error' (level 3) or 'warning' (level 4) messages.
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.
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
Community Discussion
No community discussion yet for this question.