A Cisco IOS router is configured with the following logging parameters:
text
logging buffered warnings
logging trap 3
logging monitor notifications
An engineer connects to the router over SSH, enters privileged EXEC mode, and executes the command `terminal monitor`. Shortly after, the following two syslog events occur on the router in rapid succession:
1. `%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to down`
2. `%LINK-3-UPDOWN: Interface GigabitEthernet0/1, changed state to down`
Which logging destination(s) will successfully display or store BOTH of these log events?
- Only the active SSH sessionAnswer
- BBoth the internal logging buffer and the active SSH session
- COnly the remote syslog server
- DThe internal logging buffer, remote syslog server, and active SSH session
Answer
Only the active SSH session will display both events.
Cisco IOS syslog severity levels range from 0 (Emergency, most critical) to 7 (Debugging, least critical). When a threshold is set for a logging destination, messages with severity numbers less than or equal to that threshold are logged. Event 1 has severity 5 (Notifications) and Event 2 has severity 3 (Errors). The SSH session monitoring threshold is set to notifications (level 5), which accepts severity levels 0, 1, 2, 3, 4, and 5. Thus, both events are displayed in the terminal session after executing `terminal monitor`.
Step-by-Step Solution
Key Concept
Cisco IOS Syslog Severity Hierarchy and Destination Filtering