Inscrivez-vous maintenant pour un meilleur devis personnalisé!

Nouvelles chaudes

Essential Display Commands for Daily Maintenance of Huawei Switches

Dec, 06, 2025 Hi-network.com

Essential Display Commands for Daily Maintenance of Huawei Switches


The afficher command is the most fundamental and crucial information-viewing command for Huawei network devices (including switches, routers, etc.) voir aussi:, 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

Afficher la 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.


afficher 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,  880078006800, 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.

Article:

Command

Description 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 alarme 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 informationdisplay startupThis command displays current or next startup version file information.

Versions

Afficher la 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 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 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 ou copy startupRe88pl99ace1command.

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 informationdisplay 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 statusdisplay switchover state

This command displays information about the active/standby switchover. The information helps determine whether the system meets switchover requirements.

Device alarmsdisplay alarm active

This command displays current alarm information.

Hardware alarmsdisplay device alarm hardware

This command displays hardware alarm information.

Temperature informationdisplay device temperature all

This command displays temperature information.

Fan informationdisplay device fan

This command displays fan information.

Power supply informationdisplay device power

This command displays power supply information.

Route statistics
  • display ip routing-table

  • display ip fib slot slot-id statistics

The two commands display information about routing entries.

IS-IS neighbor information
  • display isis peer

  • display isis interface

The two commands display IS-IS neighbor information.

BGP neighbor information
  • display bgp peer

  • display bgp vpnv4 all brief

The two commands display BGP neighbor information.

BGP route statistics
  • display bgp routing-table statistics

  • display bgp vpnv4 all routing-table statistics

The two commands display information about BGP routing entries.

OSPF neighbor information
  • display ospf peer

  • display ospf interface

The 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 neighbor

This command displays multicast neighbor information.

Multicast routing tabledisplay pim routing-table brief

This command displays multicast routing table information.

Stack member informationdisplay stack

This command displays stack member information.

Stack configurationdisplay stack configuration

This command displays the stack configuration.

Stack topology informationdisplay stack topology

This command displays stack topology information.

Stack fault informationdisplay 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 informationdisplay 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 informationdisplay 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 informationdisplay 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 informationdisplay 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 informationdisplay 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 informationdisplay 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 informationdisplay 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 informationdisplay 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 informationdisplay 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: info@hi-network.com)


tag-icon Tags chauds: Interrupteurs Huawei réseau

Copyright © 2014-2024 Hi-Network.com | HAILIAN TECHNOLOGY CO., LIMITED | All Rights Reserved.
Our company's operations and information are independent of the manufacturers' positions, nor a part of any listed trademarks company.