350-401 · Question #919
An engineer is connected to a Cisco router through a Telnet session. Which command must be issued to view the logging messages from the current session as soon as they are generated by the router?
The correct answer is B. terminal monitor. To display real-time logging messages from a Cisco router to a non-console terminal session (like Telnet or SSH), the terminal monitor command must be issued.
Question
An engineer is connected to a Cisco router through a Telnet session. Which command must be issued to view the logging messages from the current session as soon as they are generated by the router?
Options
- Alogging host
- Bterminal monitor
- Cservice timestamps log uptime
- Dlogging buffer
How the community answered
(18 responses)- A6% (1)
- B89% (16)
- D6% (1)
Why each option
To display real-time logging messages from a Cisco router to a non-console terminal session (like Telnet or SSH), the `terminal monitor` command must be issued.
The `logging host` command configures the router to send logging messages to an external syslog server, not to the current terminal session.
The `terminal monitor` command directs system messages, debug output, and other logging messages to the current Telnet or SSH session. By default, these messages are only sent to the console, but `terminal monitor` enables real-time viewing on virtual terminal lines.
The `service timestamps log uptime` command adds a timestamp to logging messages, but it does not enable their display on the current terminal session.
The `logging buffer` command configures the size of the buffer where logging messages are stored; messages are viewed from this buffer using the `show logging` command, not in real-time as they are generated.
Concept tested: Router logging and session monitoring
Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/esm/command/esm-cr-book/esm-cr-l2.html#wp2274971701
Topics
Community Discussion
No community discussion yet for this question.