H3C/Huawei Switch Inspection and Log Collection Commands

H3C and Huawei switches both use display series commands to view status. During inspections or troubleshooting, start a session record using terminal software and then execute the following commands in sequence to send the record file to technical support.

H3C Switch

Hardware Status and Version

CommandDescription
display clockSystem Time
display versionSoftware Version, Last Restart Time
display environmentDevice Temperature
display deviceBoard Running Status
display power / display fanPower Supply / Fan Status
display cpu-usageCPU Usage for the Last 5 Seconds, 1 Minute, and 5 Minutes
display cpu-usage historyCPU Usage History
display memoryMemory Size and Usage Rate

Running Configuration and Logs

CommandDescription
display interfaceInterface Traffic and Link Status
display ip interfaceLayer 3 Interface Statistics
display ip routing-tableRouting Table
display current-configuration | include ospfOSPF Related Configuration
display saved-configurationSaved Configuration Files
display logbufferLog Buffer
display port trunkTrunk Ports
display link-aggregation summaryLink Aggregation Group
display vrrp statisticsVRRP Master/Backup Status
display stp root / display stp brief / display stp abnormal-portSTP Root Bridge / Summary / Abnormal Ports

When collecting all diagnostic information at once, execute display diagnostic-information, save it to a device file as prompted, and then retrieve it via FTP / TFTP.

Huawei Switch

CommandDescription
display healthDevice Health Status
display deviceHardware (Board) Information
display versionVersion Information
display esnDevice Serial Number
display temperature allTemperature Information; all statuses should be normal
display diagnostic-informationComplete Diagnostic Information (Output is very long)

Can't find an answer?

Upload a log for AI diagnosis, or ask the AI assistant directly in the console.