Parameter | Description | Value |
---|---|---|
security |
Displays security log files generated in the specified time range. |
- |
log |
Displays user log files generated in the specified time range. |
- |
diagnose |
Displays diagnostic log files generated in the specified time range. In VS mode, this parameter is supported only by the admin VS. |
- |
list |
Displays diagnostic log files generated in the specified time range. |
- |
starttime starttime-value |
Specifies the start time for the query of log files. |
The value is in the YYYY/MM/DD,HH:MM:SS format.
|
endtime endtime-value |
Specifies the end time for the query of log files. |
The value is in the YYYY/MM/DD,HH:MM:SS format.
|
Usage Scenario
To check device running status, run the display logfile list command to display log files generated in the specified time range. If no log file type (log/diagnose) is specified, the command displays all types of log files generated in the specified time range.Log files of the log type are automatically named in the log.log format. You can access the cfcard: directory to view this type of log files. If the size of a log file exceeds the upper threshold, the system automatically saves the file as a historical compression one and changes the file name to log_SlotID_time.log.zip. In the file name, SlotID and time indicate the slot ID and log generation time, respectively.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display logfile log list starttime 2020/2/1,08:12:12 endtime 2020/2/2,12:17:43 -------------------------------------------------------------------------------- LogType LogFilePath -------------------------------------------------------------------------------- log 1#cfcard:/logfile/log.log log 1#cfcard:/logfile/log_17_20200202061829.log.zip --------------------------------------------------------------------------------
Item | Description |
---|---|
LogType | Log file type:
|
LogFilePath | Log file path. |