monitor start
Syntax
Release Information
Command introduced before Junos OS Release 7.4.
Command introduced in Junos OS Release 9.0 for EX Series switches.
Description
Start displaying the system log or trace file and additional entries being added to those files.
Options
filename | — | Specific log or trace file. |
Additional Information
Log files are generated by the routing protocol process or by system logging. The log files generated by system logging are configured with the syslog statement at the [edit system] hierarchy level and the options statement at the [edit routing-options] hierarchy level. The trace files generated by the routing protocol process are configured with traceoptions statements at the [edit routing-options], [edit interfaces], and [edit protocols protocol] hierarchy levels.
![]() | Note: To monitor a log file within a logical system, issue the monitor start logical-system-name/filename command. |
Required Privilege Level
trace
List of Sample Output
monitor startOutput Fields
Table 1 describes the output fields for the monitor start command. Output fields are listed in the approximate order in which they appear.
Table 1: monitor start Output Fields
Field Name | Field Description |
---|---|
***filename *** | Name of the file from which entries are being displayed. This line is displayed initially and when the command switches between log files. |
Date and time | Timestamp for the log entry. |
Sample Output
monitor start
user@host> monitor start system-log
*** system-log*** Jul 20 15:07:34 hang sshd[5845]: log: Generating 768 bit RSA key. Jul 20 15:07:35 hang sshd[5845]: log: RSA key generation complete. Jul 20 15:07:35 hang sshd[5845]: log: Connection from 204.69.248.180 port 912 Jul 20 15:07:37 hang sshd[5845]: log: RSA authentication for root accepted. Jul 20 15:07:37 hang sshd[5845]: log: ROOT LOGIN as 'root' from trip.jcmax.com Jul 20 15:07:37 hang sshd[5845]: log: Closing connection to 204.69.248.180