No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fit AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
display logbuffer

display logbuffer

Function

The display logbuffer command displays information recorded in the log buffer.

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.
  • 0: emergencies
  • 1: alert
  • 2: critical
  • 3: error
  • 4: warning
  • 5: notification
  • 6: informational
  • 7: debugging
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. -

Views

All views

Default Level

3: Management level

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.

<Huawei> 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 Huawei %%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 Huawei %%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 Huawei %%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 Huawei %%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 Huawei %%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 Huawei %%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 Huawei %%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 Huawei %%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 Huawei %%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 Huawei %%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 Huawei %%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 Huawei %%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 Huawei %%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 Huawei %%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 Huawei %%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 Huawei %%01IFPDT/4/IF_STATE(l)[16]:Interface Ethern
et5/0/2 has turned into UP state.                                     
May 10 2012 11:08:37+00:00 Huawei %%01IFPDT/4/IF_STATE(l)[17]:Interface Ethern
et5/0/1 has turned into UP state.                                     
May 10 2012 11:08:37+00:00 Huawei %%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 Huawei %%01IFNET/4/IF_STATE(l)[19]:Interface Vlanif
20 has turned into UP state.                                          
May 10 2012 11:08:37+00:00 Huawei %%01IFPDT/4/IF_STATE(l)[20]:Interface Ether
net5/0/0 has turned into UP state.                                     
May 10 2012 11:08:34+00:00 Huawei %%01IFNET/4/IF_ENABLE(l)[21]:Interface Gigab
itEthernet5/0/0 has been available.                                   
May 10 2012 11:08:34+00:00 Huawei %%01IFNET/4/IF_ENABLE(l)[22]:Interface Ether
net5/0/7 has been available.                                          
May 10 2012 11:08:34+00:00 Huawei %%01IFNET/4/IF_ENABLE(l)[23]:Interface Ether
net5/0/6 has been available.                                          
Table 4-28  Description of the display logbuffer command output

Item

Description

Logging buffer configuration and contents

Whether the AP is enabled to output logs to the log buffer:
  • enabled
  • disabled

To configure the AP 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.

<Huawei> display logbuffer summary
 EMERG ALERT  CRIT ERROR  WARN NOTIF  INFO DEBUG                                
     0     0     0    14   498     0     0     0     
Table 4-29  Description of the display logbuffer summary command output

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.

# Display 10 logs starting from log 16.
<Huawei> 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 Huawei %%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 Huawei %%01IFPDT/4/IF_STATE(l)[1]:Interface Ethernet5/0/2 has turned into UP state.                                      
May 10 2012 11:08:37+00:00 Huawei %%01IFPDT/4/IF_STATE(l)[2]:Interface Ethernet5/0/1 has turned into UP state.                                      
May 10 2012 11:08:37+00:00 Huawei %%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 Huawei %%01IFNET/4/IF_STATE(l)[4]:Interface Vlanif20 has turned into UP state.                                           
May 10 2012 11:08:37+00:00 Huawei %%01IFPDT/4/IF_STATE(l)[5]:Interface Ethernet5/0/0 has turned into UP state.                                      
May 10 2012 11:08:34+00:00 Huawei %%01IFNET/4/IF_ENABLE(l)[6]:Interface GigabitEthernet5/0/0 has been available.                                    
May 10 2012 11:08:34+00:00 Huawei %%01IFNET/4/IF_ENABLE(l)[7]:Interface Ethernet5/0/7 has been available.                                           
May 10 2012 11:08:34+00:00 Huawei %%01IFNET/4/IF_ENABLE(l)[8]:Interface Ethernet5/0/6 has been available.                                           
May 10 2012 11:08:34+00:00 Huawei %%01IFNET/4/IF_ENABLE(l)[9]:Interface Ethernet5/0/5 has been available.       
Translation
Download
Updated: 2019-07-18

Document ID: EDOC1100064353

Views: 155196

Downloads: 126

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next