Step 2: Display Error Messages in the Messages Log File
Action
To display router component error messages in the
messagessystem log file, use the following CLI command:user@host>show log messagesThe
messagessystem log file records the time the failure or event occurred, the severity level, a code, and a message description. Error messages in themessagessystem log file are logged at least 5 minutes before and after the alarm event.To search for specific information in the log file, use the |
matchcomponent-namecommand; for example, useshow log messages|match fpc. If there is a space in the component name, enclose the component name in quotation marks; for example, |match "power supply".To search for multiple items in the log file, use the
| matchcommand followed by the multiple items, separated by the|(pipe), and enclosed in quotation marks; for example,| match "fpc | sfm | kernel | tnp".To monitor the
messagesfile in real time, use themonitor start messagesCLI command. This command displays the new entries in the file until you stop monitoring by using themonitor stop messagesCLI command.For more information about system log messages, see the JUNOS System Log Messages Reference.