display logbuffer
Format
display logbuffer [ size value | module module-name | level severity | security ] *
display logbuffer summary [ level severity ]
display logbuffer log-offset offset-value size value
Parameters
Parameter | Description | Value |
---|---|---|
size value | Displays the specified number of logs recently generated in the log buffer. | The value is an integer that ranges from 1 to 1024. |
module module-name | Displays logs of a specified module in the log buffer. | Enumerated type. The value depends on the registered module. |
level severity | Displays logs of specified severity in the log buffer. | Enumerated type. The value ranges from 0 to 7.
|
summary | Displays the summary of logs in the log buffer. | - |
log-offset offset-value | Specifies logs of the specified offset in the log buffer. | The value is an integer that ranges from 0 to 1024. |
security | Displays the security logs. | - |
Usage Guidelines
Usage Scenario
- You can use the display logbuffer log-offset offset-value size size-value command to view specified logs in the log buffer. For example, the log buffer has 100 logs. To view the 20th to 50th logs in the log buffer, run the display logbuffer log-offset 20 size 30 command.
- Run the display logbuffer [ size value | module module-name | level severity ] * command to view logs of specified number, module, or severity in the log buffer. If size, module, or level is not specified, this command displays all logs in the log buffer.
- You can run the display logbuffer summary command to view logs of different severities in the log buffer.
Precautions
When the number of logs in the log buffer is smaller than value, logs of the actual number are displayed.
When the number of logs in the log buffer is smaller than offset-value, the system displays an error message.
When the number of logs in the log buffer is larger than offset-value, the system displays logs starting from offset-value plus one. The log quantity is specified by size-value. If the log quantity is less than size-value, the system displays all the logs starting from offset-value plus one.
Example
# Display all the logs in the log buffer.
<AC6605> display logbuffer Logging buffer configuration and contents: enabled Allowed max buffer size: 1024 Actual buffer size: 512 Channel number: 4, Channel name: logbuffer Dropped messages: 0 Overwritten messages: 167 Current messages: 512 May 10 2012 13:42:59+00:00 huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[0]:Some packets a re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=912) May 10 2012 13:32:59+00:00 AC6605 %%01DEFD/4/CPCAR_DROP_MPU(l)[1]:Some packets a re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684) May 10 2012 13:22:59+00:00 AC6605 %%01DEFD/4/CPCAR_DROP_MPU(l)[2]:Some packets a re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684) May 10 2012 13:12:59+00:00 AC6605 %%01DEFD/4/CPCAR_DROP_MPU(l)[3]:Some packets a re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=912) May 10 2012 13:02:59+00:00 AC6605 %%01DEFD/4/CPCAR_DROP_MPU(l)[4]:Some packets a re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684) May 10 2012 12:52:59+00:00 AC6605 %%01DEFD/4/CPCAR_DROP_MPU(l)[5]:Some packets a re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684) May 10 2012 12:42:59+00:00 AC6605 %%01DEFD/4/CPCAR_DROP_MPU(l)[6]:Some packets a re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=912) May 10 2012 12:32:59+00:00 AC6605 %%01DEFD/4/CPCAR_DROP_MPU(l)[7]:Some packets a re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684) May 10 2012 12:22:59+00:00 AC6605 %%01DEFD/4/CPCAR_DROP_MPU(l)[8]:Some packets a re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684) May 10 2012 12:12:59+00:00 AC6605 %%01DEFD/4/CPCAR_DROP_MPU(l)[9]:Some packets a re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=912) May 10 2012 12:02:59+00:00 AC6605 %%01DEFD/4/CPCAR_DROP_MPU(l)[10]:Some packet s are dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684) May 10 2012 11:52:59+00:00 AC6605 %%01DEFD/4/CPCAR_DROP_MPU(l)[11]:Some packet s are dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684) May 10 2012 11:42:59+00:00 AC6605 %%01DEFD/4/CPCAR_DROP_MPU(l)[12]:Some packet s are dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=912) May 10 2012 11:32:59+00:00 AC6605 %%01DEFD/4/CPCAR_DROP_MPU(l)[13]:Some packet s are dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684) May 10 2012 11:22:59+00:00 AC6605 %%01DEFD/4/CPCAR_DROP_MPU(l)[14]:Some packet s are dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684) May 10 2012 11:12:59+00:00 AC6605 %%01DEFD/4/CPCAR_DROP_MPU(l)[15]:Some packet s are dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684) May 10 2012 11:08:37+00:00 AC6605 %%01IFPDT/4/IF_STATE(l)[16]:Interface Ethern et5/0/2 has turned into UP state. May 10 2012 11:08:37+00:00 AC6605 %%01IFPDT/4/IF_STATE(l)[17]:Interface Ethern et5/0/1 has turned into UP state. May 10 2012 11:08:37+00:00 AC6605 %%01IFNET/4/LINK_STATE(l)[18]:The line proto col IP on the interface Vlanif20 has entered the UP state. May 10 2012 11:08:37+00:00 AC6605 %%01IFNET/4/IF_STATE(l)[19]:Interface Vlanif 20 has turned into UP state. May 10 2012 11:08:37+00:00 AC6605 %%01IFPDT/4/IF_STATE(l)[20]:Interface Ether net5/0/0 has turned into UP state. May 10 2012 11:08:34+00:00 AC6605 %%01IFNET/4/IF_ENABLE(l)[21]:Interface Gigab itEthernet5/0/0 has been available. May 10 2012 11:08:34+00:00 AC6605 %%01IFNET/4/IF_ENABLE(l)[22]:Interface Ether net5/0/7 has been available. May 10 2012 11:08:34+00:00 AC6605 %%01IFNET/4/IF_ENABLE(l)[23]:Interface Ether net5/0/6 has been available.
Item |
Description |
---|---|
Logging buffer configuration and contents |
Whether the AC is enabled to output logs to the log buffer:
To configure the AC to output logs to the log buffer, run the info-center logbuffer command. |
Allowed max buffer size |
Maximum size of the log buffer. |
Actual buffer size |
Actual size of the log buffer. To set the log buffer size, run the info-center logbuffer size command. |
Channel number |
Number of the channel used to send logs to the log buffer. To configure the number of a channel used to send logs to the log buffer, run the info-center channel command. |
Channel name |
Name of the channel used to send logs to the log buffer. To configure the name of a channel used to send logs to the log buffer, run the info-center channel name command. |
Dropped messages |
Number of dropped messages. |
Overwritten messages |
Number of overwritten messages. |
Current messages |
Number of current messages. |
# Display the summary of information in the log buffer.
<AC6605> display logbuffer summary
EMERG ALERT CRIT ERROR WARN NOTIF INFO DEBUG
0 0 0 14 498 0 0 0
Item |
Description |
---|---|
EMERG |
Number of logs of emergency. |
ALERT |
Number of logs of alert. |
CRIT |
Number of logs of critical. |
ERROR |
Number of logs of error. |
WARN |
Number of logs of warning. |
NOTIF |
Number of logs of notification. |
INFO |
Number of logs of informational. |
DEBUG |
Number of logs of debugging. |
<AC6605> display logbuffer log-offset 15 size 10 Logging buffer configuration and contents: enabled Allowed max buffer size: 1024 Actual buffer size: 512 Channel number: 4, Channel name: logbuffer Dropped messages: 0 Overwritten messages: 168 Current messages: 512 May 10 2012 11:12:59+00:00 AC6605 %%01DEFD/4/CPCAR_DROP_MPU(l)[0]:Some packets are dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684) May 10 2012 11:08:37+00:00 AC6605 %%01IFPDT/4/IF_STATE(l)[1]:Interface Ethernet5/0/2 has turned into UP state. May 10 2012 11:08:37+00:00 AC6605 %%01IFPDT/4/IF_STATE(l)[2]:Interface Ethernet5/0/1 has turned into UP state. May 10 2012 11:08:37+00:00 AC6605 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP on the interface Vlanif20 has entered the UP state. May 10 2012 11:08:37+00:00 AC6605 %%01IFNET/4/IF_STATE(l)[4]:Interface Vlanif20 has turned into UP state. May 10 2012 11:08:37+00:00 AC6605 %%01IFPDT/4/IF_STATE(l)[5]:Interface Ethernet5/0/0 has turned into UP state. May 10 2012 11:08:34+00:00 AC6605 %%01IFNET/4/IF_ENABLE(l)[6]:Interface GigabitEthernet5/0/0 has been available. May 10 2012 11:08:34+00:00 AC6605 %%01IFNET/4/IF_ENABLE(l)[7]:Interface Ethernet5/0/7 has been available. May 10 2012 11:08:34+00:00 AC6605 %%01IFNET/4/IF_ENABLE(l)[8]:Interface Ethernet5/0/6 has been available. May 10 2012 11:08:34+00:00 AC6605 %%01IFNET/4/IF_ENABLE(l)[9]:Interface Ethernet5/0/5 has been available.