< Home

display diagnostic-information (file)

Function

The display diagnostic-information command writes system diagnostic information into a file.

Format

display diagnostic-information [ module-name ] file-name

Parameters

Parameter Description Value
module-name

Specifies the name of the service module.

-

file-name

Specifies the name of the file for storing diagnostic information.

The value is a string of 5 to 64 case-insensitive characters without spaces (including file name extensions).

The default path of this file is the root directory, and the file name extension must be .txt.

Views

All views

Default Level

3: Management level

Usage Guidelines

Output for the display diagnostic-information command includes output from multiple display commands. Running the display diagnostic-information command is like running the above display commands in batches. The diagnosis modes are different on different devices. Therefore, the output of this command covers different display commands.

Precautions

  • If multiple users simultaneously run this command or one user runs this command for multiple times in a short period of time, the system displays a message indicating that this command is locked by other commands.
  • If a user runs the reboot save diagnostic-information command when another user is running the display diagnostic-information command, a message indicating that the command is locked by another user is displayed.
  • While running the display diagnostic-information command to display the diagnostic information of the current system, you should not execute the master/slave MPU switchover manually at the same time.
  • This command is used to locate faults and collect diagnosis information. The collection may affect system performance, for example, the CPU usage may become high. You are advised not to run this command when the system is running properly.

Example

# Write system diagnostic information in to a.txt.

<sysname> display diagnostic-information a.txt                              
2016-09-28 06:17:19.520 +08:00                                                  
Now saving the diagnostic information to the device
 100%
Info: The diagnostic information was saved to the device successfully.          

# Write system diagnostic information of the policy module in to b.txt.

<sysname> display diagnostic-information policy b.txt                         
2016-09-28 06:43:39.330 +08:00                                                  
Now saving the diagnostic information to the device
 100%
Info: The diagnostic information was saved to the device successfully.          
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >