
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.
| Item | Command | Description |
|---|---|---|
| Basic information | display diagnostic-information | This 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 information | display device | This 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 information | display interface | This command displays various information about an interface. You can run this command to check interface connection faults and statistics about discarded packets. |
| Startup file information | display startup | This command displays current or next startup version file information. |
| Versions | display version | This command displays version information about the system software, MPU, and LPU. The version information can help you locate faults. |
| Patch information | display patch-information | This command displays system patch package information, including patch package version and name. The information can help you locate faults. |
| Electronic label information | display device elabel | This command displays the electronic label of a board. Electronic labels identify device hardware. |
| Device status | display health | This command displays information about the temperature, power supply, fan, power, CPU usage, memory usage, and storage medium usage of the device. |
| Configuration recovery information | display configuration recover-result | This command displays configuration recovery results after the device startup. According to the results, you can check whether recovery failures occur. |
| Current configurations | display current-configuration | This command displays all configuration information on a device. You can specify a regular expression to obtain the required configuration information. |
| Saved configurations | display saved-configuration | If 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. |
| Time | display clock | This command displays the current system date and time. |
| NTP clock information | display ntp status | This command displays the NTP running status, including the clock synchronization status and clock hierarchy of the local node. |
| User logs | display logbuffer | This command displays user logs in the log buffer. |
| Traps | display trapbuffer | This command displays information recorded in the trap buffer. |
| Memory usage | display memory | This command displays the memory usage of a device. |
| CPU usage | display cpu | This command displays the CPU usage of a device. |
| Active/standby switchover status | display switchover state | This command displays information about the active/standby switchover. The information helps determine whether the system meets switchover requirements. |
| Device alarms | display alarm active | This command displays current alarm information. |
| Hardware alarms | display device alarm hardware | This command displays hardware alarm information. |
| Temperature information | display device temperature all | This command displays temperature information. |
| Fan information | display device fan | This command displays fan information. |
| Power supply information | display device power | This command displays power supply information. |
| Route statistics | display ip routing-tabledisplay ip fib slot slot-id statistics | The two commands display information about routing entries. |
| IS-IS neighbor information | display isis peerdisplay isis interface | The two commands display IS-IS neighbor information. |
| BGP neighbor information | display bgp peerdisplay bgp vpnv4 all brief | The two commands display BGP neighbor information. |
| BGP route statistics | display bgp routing-table statisticsdisplay bgp vpnv4 all routing-table statistics | The two commands display information about BGP routing entries. |
| OSPF neighbor information | display ospf peerdisplay ospf interface | The two commands display OSPF neighbor information. |
| TRILL neighbor information | display trill peer | This command displays TRILL neighbor information. |
| MPLS LSP label statistics | display mpls lsp statistics | This command displays the number of LSPs in Up state. |
| MPLS LDP session information | display mpls ldp session | Displays information about sessions between LDP peers. |
| Multicast neighbor information | display pim neighbor | This command displays multicast neighbor information. |
| Multicast routing table | display pim routing-table brief | This command displays multicast routing table information. |
| Stack member information | display stack | This command displays stack member information. |
| Stack configuration | display stack configuration | This command displays the stack configuration. |
| Stack topology information | display stack topology | This command displays stack topology information. |
| Stack fault information | display stack troubleshooting | This 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 information | display interface troubleshooting | This 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 information | display bgp troubleshooting | This 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 information | display eth-trunk troubleshooting | This 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 information | display isis troubleshooting | This 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 information | display lacp troubleshooting | This 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 information | display mpls ldp troubleshooting | This 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 information | display ospf troubleshooting | This 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 information | display ospfv3 troubleshooting | This 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 information | display trill troubleshooting | This 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])
