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 logfile

display logfile

Function

The display logfile command displays information about a log file.

Format

display logfile file-name [ offset | hex ] *

Parameters

Parameter Description Value
file-name Specifies the log file name, which can contain the drive and path. The value is a string of 1 to 64 case-insensitive characters without spaces.
offset Displays the log file with the specified offset or byte.

The value is an integer that ranges from 0 to 2147483647.

hex Displays the log file in hexadecimal notation. If the parameter is not specified, the log file is displayed in text format. -

Views

All views

Default Level

3: Management level

Usage Guidelines

Usage Scenario

When encountering problems, you can query log information to know about what happened during device operation. This is helpful for fault location.

If the version saved in a log file and the version generated by the system are different, the log file is displayed in hexadecimal notation.

The file name is generated automatically by the system. The file name extension of the log file is *.log or *.dblg. Generally, a log file name consists of a device name and log. For example, if the device name is HW, the log file name is HW-log.log or HW-log.dblg.

If the size of the current log file reaches the upper limit, the system automatically saves the current log file as a compressed file with the extension *.log.zip or *.dblg.zip, and names the compressed log file with the device name and current system time. When the log file exceeds the specified size, excessive information is stored in a new log file. For example, if the last log is recorded at 06:39:58 on May 2, 2018, the log file name is HW-2018-05 -02.06-39-58.log.zip or HW-2018-05 -02.06-39-58.dblg.zip, except in the following cases:

  1. The AP restarts.
  2. The system time changes.

The name of an AP can be configured on and delivered by the AC, or configured using the ap-sysname ap-sysname command on the AP.

Precautions

If the device name contains more than 100 characters, the log file name consists of only the first 100 characters and the time when the last log is recorded.

If the device name contains special characters (including spaces), replace the device name with capital letter X in the log file name. - and _ are not regarded as special characters.

Example

# Display log information saved in the log file in a specified path.
<Huawei> display logfile flash:/logfile/Huawei-log.log
                                                                                
                                                                                
################################################################                
#     This logfile is generated at slot 0                                       
################################################################                
                                                                                
Apr 23 2018 11:06:51+00:00 Huawei IFNET/1/IF_PVCDOWN:OID 1.3.6.1.6.3.1.1.5.3 Int
erface 6 turned into DOWN state.(AdminStatus 1,OperStatus 2,InterfaceName Ethern
et0/0/1)                                                            
Apr 23 2018 11:06:51+00:00 Huawei %%01IFPDT/4/IF_STATE(l)[3487]:Interface Ethern
et0/0/1 has turned into DOWN state.                                 
Apr 23 2018 11:06:53+00:00 Huawei IFNET/6/IF_PVCUP:OID 1.3.6.1.6.3.1.1.5.4 Inter
face 6 turned into UP state.(AdminStatus 1,OperStatus 1,InterfaceName Ethernet0/
0/1)                                                                
Apr 23 2018 11:06:53+00:00 Huawei %%01IFPDT/4/IF_STATE(l)[3488]:Interface Ethern
et0/0/1 has turned into UP state.                                   
Apr 23 2018 11:06:53+00:00 Huawei IFNET/1/IF_PVCDOWN:OID 1.3.6.1.6.3.1.1.5.3 Int
erface 6 turned into DOWN state.(AdminStatus 1,OperStatus 2,InterfaceName Ethern
et0/0/1)                                                            
Apr 23 2018 11:06:53+00:00 Huawei %%01IFPDT/4/IF_STATE(l)[3489]:Interface Ethern
et0/0/1 has turned into DOWN state.                                 
Apr 23 2018 11:06:55+00:00 Huawei IFNET/6/IF_PVCUP:OID 1.3.6.1.6.3.1.1.5.4 Inter
face 6 turned into UP state.(AdminStatus 1,OperStatus 1,InterfaceName Ethernet0/
0/1)                                                                
Apr 23 2018 11:06:55+00:00 Huawei %%01IFPDT/4/IF_STATE(l)[3490]:Interface Ethern
et0/0/1 has turned into UP state.                                   
Apr 23 2018 11:06:56+00:00 Huawei IFNET/1/IF_PVCDOWN:OID 1.3.6.1.6.3.1.1.5.3 Int
erface 6 turned into DOWN state.(AdminStatus 1,OperStatus 2,InterfaceName Ethern
et0/0/1)                                                            
Apr 23 2018 11:06:56+00:00 Huawei %%01IFPDT/4/IF_STATE(l)[3491]:Interface Ethern
et0/0/1 has turned into DOWN state.                                 
Apr 23 2018 11:06:58+00:00 Huawei IFNET/6/IF_PVCUP:OID 1.3.6.1.6.3.1.1.5.4 Inter
face 6 turned into UP state.(AdminStatus 1,OperStatus 1,InterfaceName Ethernet0/
0/1)                                                                
# Display log information saved in the log file in hexadecimal notation.
<Huawei> display logfile flash:/logfile/Huawei-log.log hex       
0d  0a  0d  0a  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  
23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  
23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  
23  23  23  23  23  23  23  23  0d  0a  23  20  20  20  20  20  54  68  69  73  
20  6c  6f  67  66  69  6c  65  20  69  73  20  67  65  6e  65  72  61  74  65  
64  20  61  74  20  73  6c  6f  74  20  30  0d  0a  23  23  23  23  23  23  23  
23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  
23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  
23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  0d  0a  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
Translation
Download
Updated: 2019-07-18

Document ID: EDOC1100064353

Views: 92508

Downloads: 64

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