A network administrator is modifying syslog settings on a Cisco IOS router. The router currently has `logging trap errors` configured. The administrator needs to change the configuration so that all events up to severity level 4 (warnings) are forwarded to the remote syslog host, and log messages up to severity level 4 are displayed live during the active SSH session. Which set of commands accomplishes these requirements?
- Configure `logging trap warnings` in global configuration mode and execute `terminal monitor` in privileged EXEC mode.Answer
- BConfigure `logging trap 3` in global configuration mode and execute `terminal monitor` in privileged EXEC mode.
- CConfigure `logging trap 4` in global configuration mode and execute `logging monitor` in privileged EXEC mode.
- DConfigure `logging trap notifications` in global configuration mode and execute `terminal monitor` in global configuration mode.
Answer
Configure `logging trap warnings` in global configuration mode and execute `terminal monitor` in privileged EXEC mode.
The option specifying `logging trap warnings` in global configuration mode and `terminal monitor` in privileged EXEC mode correctly sets the syslog trap threshold to severity level 4 (which includes levels 0 through 4) and enables real-time logging output on the user's active SSH terminal session.
Step-by-Step Solution
Key Concept
Syslog Operations, Severity Levels, and Log Destination Configuration
Estimated Time:1m 30s