nerdexam
Juniper

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.

Operational Monitoring and Maintenance

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)
  • A
    6% (1)
  • C
    12% (2)
  • D
    82% (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.

Arequest message terminal

`request message terminal` is not a valid Junos OS command for this purpose.

Bfile show

`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.

Cfile list

`file list` is used to list files in a directory, not to display their content in real-time.

Dmonitor startCorrect

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

#traceoptions#logging#real-time monitoring#CLI commands

Community Discussion

No community discussion yet for this question.

Full JN0-102 Practice