< Home

display logfile

Function

The display logfile command displays information about a log file.

Format

display logfile driver path file-name [ offset | hex ] *

Parameters

Parameter Description Value
driver Specifies the driver of a log file. -
path Specifies the path of a log file. -
file-name Specifies the log file name. -
offset Specifies an offset (expressed in bytes) of the file to be displayed. The value is a string of 0 to 2147483647 characters.
hex Specifies that the log file is displayed in hexadecimal notation. If not adopted, the log file is displayed in text format by default. -

Views

All views

Default Level

3: Management level

Usage Guidelines

The generation time of the log file is displayed in the format of "reference time + offset time".

If the version saved in the log file and the version generated by the device are not the same, the log file is displayed in hexadecimal notation.

Example

# Display the log information saved in the log file in a specified path.
<sysname> display logfile hda1:/log/log.log
                                                                                
                                                                                
################################################################                
#     This logfile is generated at slot 9                                       
################################################################                
                                                                                
Sep  7 2011 18:54:44+08:00 sysname %%01SHELL/5/CMDRECORD(l)[11499]:Record command
 information. (Task=VT1 , Ip=172.16.104.20, User=**, Vrf=public, Command="user-g
roup-queue test3191")                                                           
Sep  7 2011 18:54:44+08:00 sysname %%01SHELL/5/CMDRECORD(l)[11500]:Record command
 information. (Task=VT1 , Ip=172.16.104.20, User=**, Vrf=public, Command="user-g
roup-queue test3192")                                                           
Sep  7 2011 18:54:44+08:00 sysname %%01SHELL/5/CMDRECORD(l)[11501]:Record command
 information. (Task=VT1 , Ip=172.16.104.20, User=**, Vrf=public, Command="user-g
roup-queue test3193")                                                           
Sep  7 2011 18:54:45+08:00 sysname %%01SHELL/5/CMDRECORD(l)[11502]:Record command
 information. (Task=VT1 , Ip=172.16.104.20, User=**, Vrf=public, Command="user-g
roup-queue test3194")                                                           
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >