Essential Display Commands for Daily Maintenance of Huawei Switches
Publish Time: 06 Dec, 2025

Essential Display Commands for Daily Maintenance of Huawei Switches


The display command is the most fundamental and crucial information-viewing command for Huawei network devices (including switches, routers, etc.), forming a core component of the device command-line interface (CLI). These commands do not modify device configurations but instead present key information such as the device's current operational status, configuration parameters, and performance data, providing network engineers with the ability to “inspect” the device's internal state.


1. System-Level Information Commands

display version  - Display system version information

This command should be executed first when troubleshooting any issue. It reveals fundamental details like the switch's software version, hardware model, and boot time. Its output is crucial when confirming device models or seeking technical support.


display current-configuration  - Display current configuration

This command shows all active configuration settings on the switch, serving as the core command for backing up configurations and verifying parameter settings. New users should develop the habit of using this command to verify configurations before and after making changes.


display memory-usage  - Display memory usage

Monitors device memory utilization. Values consistently above 80% warrant caution, as they may impact device performance or indicate abnormal processes.


display environment  - Display device temperature information

Checks environmental parameters like device temperature and power status. This is valuable for early detection of hardware failures (e.g., fan malfunctions).


2. Interface and Connection Status Commands

display interfaces  - Display detailed interface information. Provides comprehensive status, traffic statistics, error packet counts, etc., for all interfaces. This is the primary tool for troubleshooting physical connections and link quality issues.


display ip interface brief - Display IP interface summary. Quickly view IP address allocation status, management status, and protocol status for all interfaces, facilitating rapid identification of interface-level faults.


display errors interface  - Display interface error information. Specifically shows interface-layer error statistics, including CRC errors, collisions, and overspills, making it extremely useful for diagnosing physical layer issues.


3. Network Layer and Data Forwarding Commands

display vlan  - Display VLAN information. Shows the ID, name, and interface membership of all VLANs, serving as a key command for checking and verifying VLAN configuration accuracy.


display mac-address  - Display MAC address table. View MAC addresses learned by the switch along with their associated interfaces and VLANs. Essential for troubleshooting terminal connections and network loops.


display mac-address [interface]  - Display MAC addresses for a specific interface. This variant allows viewing MAC addresses learned on a particular interface, facilitating identification of connected devices on specific ports.


display arp  - Display the ARP table. Shows the mapping between IP addresses and MAC addresses, used for diagnosing Layer 3 communication issues, particularly gateway reachability checks.


display ip routing-table  - Display the IP routing table. View the switch's routing information and path selection, a core command for troubleshooting Layer 3 network connectivity failures.


display stp  - Show Spanning Tree Protocol status

Presents the STP calculation results and port roles, crucial for diagnosing network loops and optimizing topology.


4. Logging and Diagnostic Commands

display logbuffer  - Show log buffer

Views critical event logs during system operation, including interface state changes, protocol updates, and error alerts. This serves as key evidence for post-incident fault analysis.


display trapbuffer  - Display trap information. Specifically shows alerts proactively reported by the system, often indicating issues requiring attention or potential risks.


Using these commands enables rapid acquisition of device status and diagnosis of root causes.


Common display Commands (CloudEngine 16800, 12800, 9800,  8800, 7800, 6800, and 5800  Series Switches)


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.


Huawei All Series Switches New and Used

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



I’d like Alerts: