Step 6: Display Error Messages in the System Log File
Action
To view Routing Engine error messages in the system log file, use the following CLI command:
user@host>show log messagesSample Output
For compact flash drive errors:
user@host> show log messagesFeb 3 07:58:17 host /kernel: ad0: HARD WRITE ERROR blk# 135783 status=51 error=10 Feb 3 07:58:17 host /kernel: ad0: HARD WRITE ERROR blk# 137633 status=51 error=10 Feb 3 07:58:47 host /kernel: ad0: HARD WRITE ERROR blk# 135731 status=51 error=10 Feb 3 07:58:47 host /kernel: ad0: HARD WRITE ERROR blk# 135783 status=51 error=10 Feb 3 07:58:47 host /kernel: ad0: HARD WRITE ERROR blk# 137633 status=51 error=10user@host> show log messagesJun 3 12:00:28 router /kernel: ad1: WRITE command timeout - resettingJun 3 12:00:44 router /kernel: ata0: resetting devices ..Jun 3 12:00:44 router /kernel: ata0: Succeeded in resetting devices.Jun 3 12:00:28 router /kernel: ad1: WRITE command timeout - resettingJun 3 12:00:17 router /kernel: ata0: resetting devices ..What It Means
The
messagessystem log file records the time the failure or event occurred, the severity level, a code, and a message description. Use theshow log messagesCLI command to browse error messages that are generated at least 5 minutes before and after an event. You can also use theshow log messages | match "device-name"command to view error messages that are specific to a device name. Use this information to diagnose a problem and to let JTAC know what error messages were generated and the router events prior to the event. For more information about system log messages, see the JUNOS Software System Log Messages Reference.