JN0-102 · Question #372
You have enabled traceoptions to log error messages. You want to have the messages displayed to your terminal session automatically as they occur. Which command should you use in this scenario?
The correct answer is D. monitor start. To view traceoption messages in real-time as they are logged to a file, the monitor start command is used in Junos OS operational mode.
Question
You have enabled traceoptions to log error messages. You want to have the messages displayed to your terminal session automatically as they occur. Which command should you use in this scenario?
Options
- Arequest message terminal
- Bfile show
- Cfile list
- Dmonitor start
How the community answered
(17 responses)- A6% (1)
- C12% (2)
- D82% (14)
Why each option
To view traceoption messages in real-time as they are logged to a file, the `monitor start` command is used in Junos OS operational mode.
`request message terminal` is not a valid Junos OS command for this purpose.
`file show` is not a standard Junos OS command; `show log <filename>` or `file show <filename>` might exist but wouldn't provide real-time updates.
`file list` is used to list files in a directory, not to display their content in real-time.
The `monitor start` command in Junos OS operational mode allows a user to display the contents of a specified file (often a traceoptions log file) to the terminal screen in real-time as new data is appended to the file. This is useful for live debugging and monitoring.
Concept tested: Real-time log monitoring in Junos OS
Source: https://www.juniper.net/documentation/us/en/software/junos/junos-cli/topics/ref/command/monitor-start.html
Topics
Community Discussion
No community discussion yet for this question.