Common display Commands for Huawei Devices
Publish Time: 23 Mar, 2025

Common display Commands for Huawei Devices

1. Frequently Used Fault Information Collection Commands

Basic Information

  • display diagnostic-information This command is primarily used to collect basic system information, integrating the output of multiple commonly used display commands, such as display device, display current-configuration, etc. This information must be provided whenever a network issue occurs. Note that this command takes longer to execute; if using direct terminal display, it can be stopped by pressing Ctrl+C.

Device Information

  • display device This command is typically used to check the status of a board when it is found to be malfunctioning. If the Status is "Abnormal," it indicates an abnormal state.

Interface Information

  • display interface This command is often used to view various interface details, commonly for troubleshooting interface connections and checking packet loss statistics.

Version Information

  • display version The version of the faulty device is crucial for fault identification. The display version command retrieves version information of the device software, BootROM, main control board, interface board, and fan module. Additionally, it provides the size information of various storage devices.

Patch Information

  • display patch-information The version of the faulty device is essential for fault identification. The display patch-information command retrieves current system patch package information, including the patch version number and patch name.

Electronic Label Information

  • display elabel Electronic labels are used to identify hardware information of the device. This command allows viewing electronic label information on the board.

Device Status Information

  • display health This command checks the temperature, power supply, fan, power consumption, CPU and memory usage, and storage media usage information of the device.

System Current Configuration Information

  • display current-configuration This command displays all configuration information currently on the device. Regular expressions can be used to filter the configuration information to find the required information.

System Saved Configuration Information

  • display saved-configuration If the device powers up successfully but operates abnormally, you can use the display saved-configuration command to view the startup configuration, i.e., the configuration file specified by the startup saved-configuration command. The display saved-configuration last command views the last saved system configuration information, while display saved-configuration time views the time of the last saved system configuration.

Time Information

  • display clock Displays the current date and time of the system.

User Log Information

  • display logfile buffer Executing this command in diagnostic view allows viewing user log information in the log file buffer.

Diagnostic Log Information

  • display diag-logfile buffer Executing this command in diagnostic view allows viewing diagnostic log information in the log file buffer.

Alarm Information

  • display trapbuffer This command views the information recorded in the Trap buffer of the information center.

Memory Usage Information

  • display memory-usage The display memory-usage [slot slot-id] command: If the parameter slot slot-id is specified, it shows the memory usage of the interface board; if not specified, it shows the memory usage of the main control board.

CPU Usage Information

  • display cpu-usage The display cpu-usage [slot slot-id] command: If the parameter slot slot-id is specified, it shows the CPU usage of the interface board; if not specified, it shows the CPU usage of the main control board.

2. Common Maintenance Commands for Routers

  • dir Displays information about specified files or directories in router storage devices.
  • display alarm hardware Views hardware alarm information of boards or sub-cards.
  • display alarm all Views all active hardware alarm information.
  • display device Views basic information of all devices in position, including power modules and fan modules.
  • display trapbuffer Views information recorded in the Trap display area.
  • display alarm statistics Views alarm statistics.
  • display alarm information Views detailed alarm information.
  • display bgp peer Views BGP peer information.
  • display cpu-usage Displays CPU usage statistics.
  • display current-configuration Views the currently effective configuration parameters of the router.
  • display device Views basic information of router devices.
  • display ftp-server Views various parameters of the current FTP server.
  • display interface Views the current operational status and statistical information of interfaces.
  • display ip interface Views IP-related configurations and statistical information of interfaces, including the number of packets received and sent, bytes, multicast packets, and broadcast packets received, sent, forwarded, and discarded.
  • display ip interface brief Views brief IP-related information of interfaces, including IP address, physical link and protocol status, and interface description.
  • display ip routing-table Views summary information of the IPv4 routing table.
  • display isis peer Views IS-IS neighbor information.
  • display memory-usage Views router memory usage information.
  • display ospf brief Views OSPF summary information.
  • display ospf peer Views OSPF neighbor information in each area.
  • display patch-information Views patch status.
  • display power Views power status.
  • display saved-configuration Views the configuration file used upon the next power-up of the router.
  • display startup Views system software and configuration filenames related to the current and next startup.
  • display switchover state Views the backup status of the primary/standby board.
  • display temperature Views the status of temperature sensors in slots.
  • display voltage Views the voltage sensor status of specified slots.
  • display version Queries system software version.
  • ping Checks IP network connectivity and host reachability.
  • tracert Tests the gateways through which data packets pass from the sending host to the destination, mainly used to check network connectivity and analyze where the network failure occurred.

3. Common Fault Information Collection Commands for Switches

Basic Information

  • display diagnostic-information When seeking technical support, this command quickly collects device diagnostic information. It integrates the output of multiple commonly used display commands, such as display clock, display version, display current-configuration, etc., and can be considered a batch execution of common system display commands.

Device Information

  • display device Used to view hardware information and registration status of device components and boards. When a device fails and technical support is needed, inform the technicians of the hardware information of the faulty device and components.

Interface Information

  • display interface When traffic statistics or fault diagnosis of an interface is needed, use this command to view the current operational status and statistical information of the interface, including the physical status, basic configuration, and packet forwarding through the interface.

Version Information

  • display version Used to view device version information to determine if the system needs upgrading.

Patch Information

  • display patch-information After loading or deleting patches, view the current system patch information, including patch version number, patch name, and patch status. Providing patch information to technicians when seeking technical support helps them quickly locate faults.

Time Information

  • display clock Used to determine the time point when the fault occurred.

System Current Configuration Information

  • display current-configuration Used to view the current configuration information of the device when a fault occurs.

System Saved Configuration Information

  • display saved-configuration Used to view the saved configuration information on the device, i.e., the configuration information used upon the next system startup.

Alarm Information

  • display trapbuffer Used to view information recorded in the Trap buffer. After finding alarm information related to the fault, fault location can be performed according to the "Alarm Handling" guide.

User Log Information

  • display logbuffer Used to view information recorded in the Log buffer. After finding log information related to the fault, fault location can be performed according to the "Log Reference" guide.

Electronic Label Information

  • display elabel When returning hardware for repair and needing to provide a serial number, or when needing to know hardware production date and other hardware information, these details can be obtained by viewing the electronic label. For specific methods, refer to "Obtaining Device Serial Number - Box Type" and "Obtaining Device Component Serial Number - Frame Type."

One-Click Information Collection

  • display diagnostic-information dia-info.txt The default save path for the txt file is flash:/. Use the dir command in user view to confirm whether the file was correctly generated. After a device failure, submitting the diagnostic information file to technical support personnel helps expedite fault location.

Obtaining Logs and Alarm Information - Box Type

  • save logfile Manually save the information in the log file buffer to a log file.


Huawei All Series Switches New and Used

For Huawei product list and quote, please visit: https://www.hi-network.com/categories/cisco or contact us at www.hi-network.com  (Email: [email protected])





CloudEngine 16800, 12800, 9800, 8800, 7800, 6800, and 5800 Series Switches Troubleshooting Guide (V100 and V200)

Common display Commands


The device provides various display commands to display hardware, interface, and software information. The information helps you locate various faults.

The following table lists the commands used to collect fault information.

ItemCommandDescription
Basic informationdisplay diagnostic-informationThis command collects basic system information. It displays outputs of multiple display commands, including display device and display current-configuration. Executing this command requires a long time. You can press Ctrl+C to pause diagnosis information display on screen.
Device informationdisplay deviceThis command checks the status of a board when the board works abnormally. If the Alarm field displays Abnormal, the board is not working properly.
Interface informationdisplay interfaceThis command displays various information about an interface. You can run this command to check interface connection faults and statistics about discarded packets.
Startup file informationdisplay startupThis command displays current or next startup version file information.
Versionsdisplay versionThis command displays version information about the system software, MPU, and LPU. The version information can help you locate faults.
Patch informationdisplay patch-informationThis command displays system patch package information, including patch package version and name. The information can help you locate faults.
Electronic label informationdisplay device elabelThis command displays the electronic label of a board. Electronic labels identify device hardware.
Device statusdisplay healthThis command displays information about the temperature, power supply, fan, power, CPU usage, memory usage, and storage medium usage of the device.
Configuration recovery informationdisplay configuration recover-resultThis command displays configuration recovery results after the device startup. According to the results, you can check whether recovery failures occur.
Current configurationsdisplay current-configurationThis command displays all configuration information on a device. You can specify a regular expression to obtain the required configuration information.
Saved configurationsdisplay saved-configurationIf the device has been started and is not working properly, run the display saved-configuration command to check the device startup configuration in the file specified by running the startup saved-configuration or copy startup command.Run the display saved-configuration last command to check the system configurations saved last time in the configuration file loaded during the current startup.
Timedisplay clockThis command displays the current system date and time.
NTP clock informationdisplay ntp statusThis command displays the NTP running status, including the clock synchronization status and clock hierarchy of the local node.
User logsdisplay logbufferThis command displays user logs in the log buffer.
Trapsdisplay trapbufferThis command displays information recorded in the trap buffer.
Memory usagedisplay memoryThis command displays the memory usage of a device.
CPU usagedisplay cpuThis command displays the CPU usage of a device.
Active/standby switchover statusdisplay switchover stateThis command displays information about the active/standby switchover. The information helps determine whether the system meets switchover requirements.
Device alarmsdisplay alarm activeThis command displays current alarm information.
Hardware alarmsdisplay device alarm hardwareThis command displays hardware alarm information.
Temperature informationdisplay device temperature allThis command displays temperature information.
Fan informationdisplay device fanThis command displays fan information.
Power supply informationdisplay device powerThis command displays power supply information.
Route statisticsdisplay ip routing-tabledisplay ip fib slot slot-id statisticsThe two commands display information about routing entries.
IS-IS neighbor informationdisplay isis peerdisplay isis interfaceThe two commands display IS-IS neighbor information.
BGP neighbor informationdisplay bgp peerdisplay bgp vpnv4 all briefThe two commands display BGP neighbor information.
BGP route statisticsdisplay bgp routing-table statisticsdisplay bgp vpnv4 all routing-table statisticsThe two commands display information about BGP routing entries.
OSPF neighbor informationdisplay ospf peerdisplay ospf interfaceThe two commands display OSPF neighbor information.
TRILL neighbor informationdisplay trill peerThis command displays TRILL neighbor information.
MPLS LSP label statisticsdisplay mpls lsp statisticsThis command displays the number of LSPs in Up state.
MPLS LDP session informationdisplay mpls ldp sessionDisplays information about sessions between LDP peers.
Multicast neighbor informationdisplay pim neighborThis command displays multicast neighbor information.
Multicast routing tabledisplay pim routing-table briefThis command displays multicast routing table information.
Stack member informationdisplay stackThis command displays stack member information.
Stack configurationdisplay stack configurationThis command displays the stack configuration.
Stack topology informationdisplay stack topologyThis command displays stack topology information.
Stack fault informationdisplay stack troubleshootingThis command displays stack fault information.This command is supported since V100R001C00. In versions earlier than V100R002C00, this command is supported in the diagnostic view. In V100R002C00 and later versions, this command is supported in all views.
Interface fault informationdisplay interface troubleshootingThis command displays interface fault information.This command is supported since V100R005C00. In V100R005C00, this command is supported in the diagnostic view. In V100R005C10 and later versions, this command is supported in user view.
BGP fault informationdisplay bgp troubleshootingThis command displays BGP fault information.This command is supported since V100R005C00. In versions earlier than V100R006C00, this command is supported in the diagnostic view. In V100R006C00 and later versions, this command is supported in all views.
Eth-Trunk fault informationdisplay eth-trunk troubleshootingThis command displays Eth-Trunk fault information.This command is supported since V100R005C00. In versions earlier than V100R006C00, this command is supported in the diagnostic view. In V100R006C00 and later versions, this command is supported in all views.
IS-IS fault informationdisplay isis troubleshootingThis command displays IS-IS fault information.This command is supported since V100R005C00. In versions earlier than V100R006C00, this command is supported in the diagnostic view. In V100R006C00 and later versions, this command is supported in all views.
LACP fault informationdisplay lacp troubleshootingThis command displays LACP fault information.This command is supported since V100R005C00. In versions earlier than V100R006C00, this command is supported in the diagnostic view. In V100R006C00 and later versions, this command is supported in all views.
MPLS fault informationdisplay mpls ldp troubleshootingThis command displays MPLS fault information.This command is supported since V100R005C00. In versions earlier than V100R006C00, this command is supported in the diagnostic view. In V100R006C00 and later versions, this command is supported in all views.
OSPF fault informationdisplay ospf troubleshootingThis command displays OSPF fault information.This command is supported since V100R005C00. In versions earlier than V100R006C00, this command is supported in the diagnostic view. In V100R006C00 and later versions, this command is supported in all views.
OSPF IPv6 fault informationdisplay ospfv3 troubleshootingThis command displays OSPF IPv6 fault information.This command is supported since V100R005C00. In versions earlier than V100R006C00, this command is supported in the diagnostic view. In V100R006C00 and later versions, this command is supported in all views.
TRILL fault informationdisplay trill troubleshootingThis command displays TRILL fault information.This command is supported since V100R005C00. In versions earlier than V100R006C00, this command is supported in the diagnostic view. In V100R006C00 and later versions, this command is supported in all views.



I’d like Alerts: