Supported Platforms
displaylog
Syntax
displaylog -T system:mm[x] <-a> <-date date-filter> <-sev severity-filter> <-src source-filter>
Release Information
Command supported by Junos OS Release 9.1 and later.
Description
(JCS management module CLI) Display the JCS management module event log entries.
Options
-T system:mm[x]—Specify the management module as the target of the command. Replace x with a value of 1 or 2.
-a—(Optional) Display all entries in the JCS management module event log. By default, the displaylog command displays only the first five entries in the log.
-date date-filter—(Optional) Display all entries in the JCS management module event log that meet the date filter criteria. Replace date-filter with a list of dates in mm/dd/yy format. Use the pipe symbol (|) to separate dates in the list. For example, specify the a -date 03/17/2008|03/18/2008 filter to show all events in the log that occurred on March 17, 2008 and March 18, 2008.
-sev severity-filter—(Optional) Display all entries in the JCS management module event log that meet the severity filter criteria. Replace severity-filter with a list of severities. Use the pipe symbol (|) to separate severities in the list. Severities you can specify include:
- I—information
- E—error
- W—warning
For example, you can specify a -sev E|W filter to show all error and warning events in the log.
-src source-filter—(Optional) Display all entries in the JCS management module event log that meet the source filter criteria. Replace source-filter with a list of event sources. Use the pipe symbol (|) to separate sources in the list. Sources you can specify include:
- blade_x—Routing Engine (blade). Replace x with a value of 01 through 12.
- blower-x—JCS fan (blower). Replace x with a value of 1 through 4.
- mm_x—JCS management module. Replace x with a value of 1 or 2.
- mt_x—JCS media tray. Replace x with a value of 1 or 2.
- power_x—JCS power supply. Replace x with a value of 1 through 4.
- switch_x—JCS switch module. Replace x with a value of 1 or 2.
Required Privilege Level
supervisor
List of Sample Output
displaylog (All Entries)displaylog (Filter by Severity)
Output Fields
Table 1 lists the output fields for the displaylog command. Output fields are listed in the approximate order in which they appear.
Table 1: displaylog Output Fields
Field Name | Field Description |
---|---|
Index Number | Log entry number. The most recent entries have the lowest numbers. |
Entry Type | Type of log entry. Log entries can be informational (I), warnings (W), or errors (E). |
System | System where the entry occurred; for example, Blade_03 (Routing Engine in slot 3). |
Date and Time | Date and time the entry was logged. |
Message | Message associated with the log entry. |
Sample Output
displaylog (All Entries)
system> displaylog –T system:mm[1] -a
1 I Audit 01/28/08 19:47:01 Remote logoff successful for user 'kmarkham' 2 I Blade_03 01/27/08 19:46:14 (bcgcpu3) Blade reboot 3 I SERVPROC 01/27/08 19:45:57 Login ID:''USERID' CLI telnet authenticated. 4 E SERVPROC 01/27/08 19:42:58 Failure reading I2C device. Check bus 4. 5 I SERVPROC 01/27/08 19:41:54 Login ID:''USERID' from WEB browser. 6 E SERVPROC 01/27/08 19:41:53 Blower 2 Fault Multiple blower failures. 7 E SERVPROC 01/27/08 19:41:53 Blower 1 Fault Single blower failure. 8 I SERVPROC 01/27/08 19:41:48 Ethernet[1] Link Established at 100Mb. 9 I SERVPROC 01/27/08 19:41:48 Ethernet[1] configured to do 100Mb/Full Duplex. 10 I SERVPROC 01/27/08 19:41:48 Ethernet[1] MAC Address: 0x00-09-6B-CA-0C-81 11 I SERVPROC 01/27/08 19:41:48 Ethernet[0] Link Established at 100Mb. 12 I SERVPROC 01/27/08 19:41:48 Ethernet[0] configured to do Auto Speed/Auto. 13 I SERVPROC 01/27/08 19:41:48 Ethernet[0] MAC Address: 0x00-09-6B-CA-0C-80 14 I SERVPROC 01/27/08 19:41:48 Management Module Network Initialization. 15 I SERVPROC 01/27/08 19:41:46 ENET[1] IP-Cfg:HstName=MM00096BCA0C81.
displaylog (Filter by Severity)
system> displaylog –T system:mm[1] -sev
E
1 E SERVPROC 01/27/08 19:42:58 Failure reading I2C device. Check bus 4. 2 E SERVPROC 01/27/08 19:41:53 Blower 2 Fault Multiple blower failures. 3 E SERVPROC 01/27/08 19:41:53 Blower 1 Fault Single blower failure.