monitor start
Syntax
monitor start filename
Description
Running monitoring can adversely impact scale and performance and may increase security risk. We strongly recommend using these commands only under the guidance of a JTAC support engineer. After collecting the debug information, immediately stop monitoring to minimize risk and restore normal system performance.
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.
To monitor a log file within a logical system, issue the monitor start logical-system-name/filename command.
Required Privilege Level
trace
Output Fields
Table 1 describes
the output fields for the monitor start command. Output
fields are listed in the approximate order in which they appear.
Field Name |
Field Description |
|---|---|
|
Name of the file from which entries are being displayed. This line is displayed initially and when the command switches between log files. |
|
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 host.example.com Jul 20 15:07:37 hang sshd[5845]: log: Closing connection to 204.69.248.180
Release Information
Command introduced before Junos OS Release 7.4.