The display diagnostic-information command writes system diagnostic information into a file.
| 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. |
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
# 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.