How to collect logs of a CE series switch

Log information is save in four types of log files including the diag.log, log.log, diagnose.log (one-click logs), diagnostic_information.zip (memory logs) files.




To analyze software issues, collect log information in the diag.log, log.log, diagnose.log (one-click logs are the most important) files.



To analyze hardware issues, collect log information in the diag.log, log.log, diagnostic_information.zip (memory logs, which are the most important logs) files, and other related command lines.



Collect log information using either of the following methods:



1. Collect diagnostic logs in one click.



<HUAWEI>system-view

[~HUAWEI] diagnose

[~HUAWEI-diagnose] display diagnostic-information >> diagnose.log



Note:

1. Executing the command takes about 5 minutes. Please wait.

2. The diagnose.log file is exported to the root directory of the active MPU.



< HUAWEI >cd flash:

<~HUAWEI >dir



3. Collect log information in the diag.log, log.log, and diagnostic_information.zip files.



<HUAWEI>system 

[~HUAWEI] diagnose

[~HUAWEI-diagnose] collect diagnostic information
[~HUAWEI-diagnose] return
<HUAWEI >save logfile

<HUAWEI > cd logfile:

<HUAWEI >dir



Note:

You can run the mput * command to collect all logs.

[ftp]mput *



3. Run the following command lines to collect information to analyze hardware issues.



[~HUAWEI]

display startup

display version

display alarm active

display alarm history verbose

display device alarm hardware

display device

display device canbus (CE12800 series switches)

display device power sy

display device elabel

display device power

display health


display device board reset all (in the diagnostic view in some versions)


Other related questions:
How to collect logs on S series switches
If you have more questions, you can seek help from following ways:
To iKnow To Live Chat To Google
Scroll to top