< Home

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 case-insensitive characters, spaces not supported. If the parameter value does not contain any path, it is a string of 1 to 64 bytes. Otherwise, it is a string of 1 to 160 bytes.

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

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

The file name is generated automatically by the system. The file name extension of the log file is *.log or *.dblg. When the current log file size reaches the specified upper limit, the system compresses the file into a *.log.zip or *.dblg.zip file.

You can view the *.log files or *.log.zip files. When viewing a *.log.zip file, you can press Ctrl+C to abort command execution.

When viewing the *.log.zip file, it is recommended that the length of the file name (including the driver and path) not exceed 62 bytes. Otherwise, the content of the file may fail to be viewed.

If the files you filter based on the pipe character are large and no qualified log file is displayed, the command fails to display any output for a long period of time until the command execution finishes.

For details about the log format, see "Log Message Format Description" in the S2720, S5700, and S6700 V200R019C10 Log Reference - Introduction.

Example

# Display log information saved in the log file in a specified path.

<HUAWEI> display logfile logfile/log.log
################################################################
#     This logfile is generated at slot 0
################################################################

Aug 30 2013 16:18:58-05:13 HUAWEI FSP/4/STANDBY_CHANGE:OID 1.3.6.1.4.1.2011.5.25.183.1.22.3 Slot 2 is designated as standby.       
Aug 30 2013 16:19:40-05:13 HUAWEI SNMP/4/WARMSTART:OID 1.3.6.1.6.3.1.1.5.2 warmStart                                               
Aug 30 2013 16:19:15-05:13 HUAWEI %%01ACL/6/INIT_OK(l)[6]:Succeed in mqc initializtion.                                            
Aug 30 2013 16:19:41-05:13 HUAWEI %%01SHELL/5/CMDRECORD(s)[7]:Record command information. (Task=CFM, Ip=**, User=**, Command="vlan 
batch 4090", Result=Success)                                                                                                        
Aug 30 2013 16:19:41-05:13 HUAWEI %%01SHELL/5/CMDRECORD(s)[8]:Record command information. (Task=CFM, Ip=**, User=**, Command="inter
face Vlanif4090", Result=Success)                                                                                                   
Aug 30 2013 16:19:43-05:13 HUAWEI %%01SHELL/5/CMDRECORD(s)[9]:Record command information. (Task=CFM, Ip=**, User=**, Command="inter
face Eth-Trunk10", Result=Success)                                                                                                  
Aug 30 2013 16:19:43-05:13 HUAWEI %%01SHELL/5/CMDRECORD(s)[10]:Record command information. (Task=CFM, Ip=**, User=**, Command="inte
rface Eth-Trunk20", Result=Success)                                                                                                 
Aug 30 2013 16:19:44-05:13 HUAWEI %%01SHELL/5/CMDRECORD(s)[11]:Record command information. (Task=CFM, Ip=**, User=**, Command="inte
rface Eth-Trunk30", Result=Success)                                                                                                 
Aug 30 2013 16:19:44-05:13 HUAWEI %%01SHELL/5/CMDRECORD(s)[12]:Record command information. (Task=CFM, Ip=**, User=**, Command="inte
rface GigabitEthernet0/0/1", Result=Success)                                                                                        
Aug 30 2013 16:19:44-05:13 HUAWEI %%01SHELL/5/CMDRECORD(s)[13]:Record command information. (Task=CFM, Ip=**, User=**, Command="inte
rface GigabitEthernet0/0/2", Result=Success)                                                                                        
Aug 30 2013 16:19:44-05:13 HUAWEI %%01SHELL/5/CMDRECORD(s)[14]:Record command information. (Task=CFM, Ip=**, User=**, Command="inte
rface GigabitEthernet0/0/3", Result=Success)
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >