You are troubleshooting a problem on your Junos device. You want to view the syslog messages in real-time on your terminal. In this scenario, which command will accomplish this task?
You are troubleshooting a problem on your Junos device. You want to view the syslog messages in real-time on your terminal. In this scenario, which command will accomplish this task?
To view the syslog messages in real-time on a Junos device, you should use the command 'monitor log messages'. This command allows you to see messages as they are generated by the system, providing a live view useful for troubleshooting. Other commands like 'show log messages' only display the existing log file contents and do not update in real-time.
To monitor the messages file in real time, use the monitor start messages CLI command. This command displays the new entries in the file until you stop monitoring by using the monitor stop messages CLI command. source here ==> https://www.juniper.net/documentation/en_US/junos/topics/task/verification/error-messages-log-file-displaying.html
It's show log messages
Command is: " root@user> monitor start messages" when trying to monitor system log files in real time
root@RE-R1> monitor start messages {linecard:1} root@RE-R1> *** messages *** May 10 08:28:33 RE-R1 dcd[1605]: DCD_CONFIG_WRITE_FAILED: IFL em0.0 configuration write failed for an IFL ADD: File exists May 10 08:28:37 RE-R1 rpio_tunnel_br[1817]: PFEMAN: trying master connection, attempt 80 to 0x1000080 for port 23064 status 65 May 10 08:28:38 RE-R1 rpio_tunnel_br[1817]: CMLC: Retrying master connection, attempt 50 to 0x1000080
Should be D
D is correct
Answer D
Ref: monitor start | Junos OS | Juniper Networks "monitor start ... Description Start displaying the system log or trace file and additional entries being added to those files. ..."
https://www.juniper.net/documentation/us/en/software/junos/icmp/topics/ref/command/monitor-start.html
D is correct
A. monitor log messages Explanation: The "monitor log messages" command in Junos OS allows you to view syslog messages in real-time on your terminal. As new syslog messages are generated by the system, they are displayed on the terminal screen, allowing you to monitor events and troubleshoot problems as they occur. The other options do not provide real-time monitoring of syslog messages: B. "show log traceoptions" is used to view the contents of the traceoptions log file, which contains tracing information for debugging purposes. It does not provide real-time monitoring of syslog messages. C. "show log messages" is used to view the contents of the "messages" log file, which contains syslog messages. However, this command displays the existing contents of the log file and does not provide real-time monitoring. D. "monitor start message" is not a valid Junos OS command.
A. monitor log messages The command "monitor log messages" allows you to monitor and display the syslog messages in real-time on your terminal. This command continuously displays the log messages as they are generated, providing you with a live view of the system logs.
'monitor log' is not available. Below I copied from a random switch in my company: > monitor ? Possible completions: ethernet Start ethernet performance measurement interface Show interface traffic list Show status of monitored files start Start showing log file in real time static-lsp Show static label-switched-path traffic stop Stop showing log file in real time traffic Show real-time network traffic information