This section describes how to collect fault information.
This chapter describes the information collection method. You must collect detailed fault information as soon as possible no matter whether you locate faults by yourself or ask help from agent or technical support personnel.
NOTE: If you provide fault information to agents or technical support personnel, you can delete the security information, such as network configurations.
- 3.1 Overview
After a device fault occurs, collect fault information immediately. This helps narrow down the fault scope and allow you to locate the fault accurately. Before fault location, collect the following fault information: - 3.2 Collecting Diagnostic Information
The display diagnostic-information command displays debugging information outputs of multiple display commands. You can use this command to collect device diagnostic information. - 3.3 Collecting Log Information
When a device is faulty, collect the log information on the device immediately. The log information helps you know what had happened during device operation and where the fault occurred.
3.1 Overview
After a device fault occurs, collect fault information immediately. This helps narrow down the fault scope and allow you to locate the fault accurately. Before fault location, collect the following fault information:
- Fault occurrence time, network topology, operations triggering the fault, fault symptom, measures that you have taken and results, and affected services
- Name, version, current configurations, interfaces of the faulty device. For the method of obtaining these information, see 3.2 Collecting Diagnostic Information and 8.1.3 Common display Commands.
- Logs generated when the fault occurs. For the method of obtaining the log information, see 3.3 Collecting Log Information.
3.2 Collecting Diagnostic Information
The display diagnostic-information command displays debugging information outputs of multiple display commands. You can use this command to collect device diagnostic information.
The display diagnostic-information [ file-name ] command displays the device diagnostic information on screen or outputs the information to a .txt file. The device diagnostic information includes startup configuration, current configurations, interface information, time, and system version. The following is an example:
<Huawei> display diagnostic-information dia-info.txt
This operation will take several minutes, please wait.........................
................................................................................
……
Info: The diagnostic information was saved to the device successfully.By default, the diagnostic information is saved to the root directory of the default storage device (flash:/). You can run the dir command in the user view to check whether the file is correctly generated.
After a device becomes faulty, provide the device diagnostic information to agents or technical support personnel immediately for fast fault location. For the method of transmitting the diagnostic information from the device to your computer, see 4.5 Transferring Files Using FTP/TFTP.
NOTE: - Executing this command requires a long time. You can press Ctrl+C to pause diagnosis information display on screen.
- When a large amount of diagnostic information is displayed, the CPU usage may be high in a short period.
3.3 Collecting Log Information
When a device is faulty, collect the log information on the device immediately. The log information helps you know what had happened during device operation and where the fault occurred.
Logs, including user logs and diagnostic logs, record user operations, system faults, and system security.
<Huawei> save logfile Info: It may take several seconds,please wait... Save log file successfully. <Huawei> system-view [Huawei] diagnose [Huawei-diagnose] save diag-logfile Save diagnostic log file successfully. [Huawei-diagnose] info-center create logbook flash:/logfile/logbook.xml Info: It may take several seconds,please wait... Info: Succeeded in creating a data dictionary.
After the preceding configurations are complete, upload all files in flash:/logfile/ to your computer through FTP or TFTP. For details, see 4.5 Transferring Files Using FTP/TFTP.
NOTE: After obtaining log files, you can analyze several log files before and after the fault occurred to facilitate locating the fault.