Home / Notes / Data Center Switch Diagnostic Commands
NOTES · MAINTENANCE / DC DIAGNOSTIC COMMANDS

Data Center Switch Diagnostic Commands: The Reference Card

Once you already know which subsystem to check on a CloudEngine leaf or spine switch, this is the command to reach for — grouped the way an engineer actually thinks about it: hardware, interface and packet loss, MAC/ARP table entries, protocol (OSPF, BGP, VXLAN, M-LAG), and traffic (mirroring, QoS). Every command here is taken directly from the CloudEngine 16800/9800/8800/6800 maintenance handbook's own diagnostic command chapter.

By the AtlasCommTech engineering team — 13 years of carrier & enterprise network deployments · Updated July 2026

Two Different Documents, One Handbook

One tells you what to collect before you escalate. This one is the dictionary you reach for while you're still trying to find it yourself.

Our Fault Information Collection Checklist covers the collection order to follow the moment something misbehaves — the one-shot capture, a baseline checklist, log handling, and a cheat sheet organized by fault type (IPSec, OSPF, BGP, DHCP, reboot, ARP), platform-agnostic across Huawei routers and switches. This note is narrower and more specific: it is the CloudEngine 16800/9800/8800/6800 series maintenance handbook's own chapter on common information collection and diagnostic commands, reorganized into the five scenario groups a data center engineer actually thinks in.

Those five groups are hardware (boards, power, fans, optics), interface and packet loss (link state, counters, CPU-defend drops), table entries (MAC and ARP), protocol (OSPF, BGP, VXLAN tunnels, M-LAG peer state), and traffic (mirroring a port to chase a capture, or reading whether a traffic policy actually matched anything). Match the symptom to a group, and the right command is usually one of two or three.

The One-Shot Capture, Before Anything Scenario-Specific

The same baseline bundle applies here as anywhere else — grab it first, then go looking for the scenario-specific command.

display diagnostic-information collects the device's boards, current configuration, interface information, clock, software version and more in a single pass. Give it a file name so the output lands on flash rather than scrolling past on the terminal.

<HUAWEI> display diagnostic-information dia-info.txt

100%

Info: The diagnostic information was saved to the device successfully.

From V300R022C10 onward there is a lighter alternative when only the logs, KPI data and PADS files are actually needed rather than the full display bundle: collect diagnostic information, run from the user view or the diagnose view, which zips the current log directory straight to diagnostic_information.zip under flash.

<HUAWEI> collect diagnostic information

This command is documented as one that can raise CPU usage while it runs — avoid it over a serial console, avoid running it from more than one terminal session at once, and don't make it routine housekeeping on a healthy device.

The Five Scenario Groups

Match the symptom, then run two or three commands — not the whole handbook.

Hardware

CommandWhat it tells you
display devicePer-board status — a board reporting Abnormal is the first thing to confirm.
display device alarm hardwarePower, fan and temperature alarms actually raised on the box.
display device power systemPower draw against supply capacity — the check before inserting another board or optic.
display device elabelHardware identity and manufacture information, needed for an RMA.
display device board reset slot-idRun from the diagnose view — the recorded reason a specific board actually reset.

Interface & Packet Loss

CommandWhat it tells you
display interfacePhysical state, configuration and packet counters — the standard first stop for a suspect link.
display interface transceiver verboseOptical transmit/receive power, for a link that's up but unreliable.
reset counters interface / ping / display interfaceClear, generate traffic, re-read — the only way the counters reflect this window, not the last few weeks.
display cpu-defend statistics packet-type packet-typePackets actually being rate-limited or dropped by CPU-plane protection — a packet-loss cause that display interface alone won't surface.

Table Entries — MAC & ARP

CommandWhat it tells you
display mac-addressMAC-VLAN-port mapping — the first stop when traffic is forwarding to the wrong place.
display mac-address flappingThe live record of a MAC address moving between ports or VLANs, with a MoveNum counter.
display mac-address flapping aged-tableFlap records that have already aged out of the live table above — see Gotcha 2 for why this matters.
display arpARP entry type and state for a given IP — confirms whether the gateway's own table is the problem.
display arp statisticsARP table counters, for a broader view of table churn.

Protocol — OSPF, BGP, VXLAN, M-LAG

CommandWhat it tells you
display ospf peer verbosePer-neighbor state detail well beyond a plain up/down.
display bgp peer ipv4-address log-infoThe neighbor Down error code directly — the fastest read on why a session flapped.
display vxlan troubleshootingAn automated one-click check against a library of known VXLAN fault signatures — see Gotcha 3 for its limits.
display vxlan tunnelActual tunnel and VTEP peer state for the overlay.
display dfs-group / display dfs-group consistency-check globalM-LAG peer status, and a purpose-built check for configuration drift between the two peer devices.
display dfs black-box moduleA per-module state snapshot (arp, bridge-domain, adjacency and more) — run on both M-LAG peers, see Gotcha 4.
[~Device1] display vxlan troubleshooting
[~Device1] display vxlan tunnel
<HUAWEI> display dfs-group
<HUAWEI> display dfs-group 1 consistency-check global
[~HUAWEI-diagnose] display dfs black-box arp
[~HUAWEI-diagnose] display dfs black-box bridge-domain

Traffic — Mirroring & QoS

CommandWhat it tells you
display port-mirroringConfirms the observe-port and mirror-port pairing actually matches what was configured.
display interface brief (Input on the mirror port, Output on the observe port)Confirms mirrored traffic is actually arriving at the observe port before blaming the capture tool.
observe-port / mirroring / port-mirroring observe-portThe configuration commands themselves — see Gotcha 5 on the privacy line before enabling them.
display traffic-policy statistics interface interface inbound/outboundWhether a traffic policy is actually matching, and what it's doing to the packets that hit it.
[~HUAWEI] observe-port 1 interface 25GE1/0/1
[*HUAWEI-25GE1/0/2] port-mirroring observe-port 1 inbound
<HUAWEI> display port-mirroring
[~HUAWEI] display traffic-policy statistics interface 100GE 1/0/1 inbound

Reading Interface Counters Without Lying to Yourself

This applies to every group above that touches a counter — it's worth doing right once, not per-scenario.

display interface and display ip interface report statistics accumulated since the device booted or since the counters were last cleared — not since the problem started. On a spine-leaf fabric with ports that have been up for months, that accumulated history gets in the way of reading what's happening right now.

  1. Clear the counters with reset counters interface or reset ip statistics.
  2. Generate traffic across the link with ping.
  3. Re-read the same statistics with display interface or display ip interface — only what accumulated during this window is live.
reset counters interface 100GE 1/0/1
ping -c 20 10.0.0.2
display interface 100GE 1/0/1

A nonzero Total Error after this sequence is worth chasing. Before the reset, it only proves something happened at some point since the last clear.

5 Gotchas in the Command Set Itself

The commands above have sharp edges of their own — these are the ones that catch DC engineers off guard.

1. The One-Shot Capture Behaves Differently Depending on How and Where You Run It

SYMPTOMdisplay diagnostic-information ties up a serial console session for a long time, or CPU usage climbs noticeably when it's run from two terminals at once.

CAUSEThe command is explicitly documented as one that raises CPU usage while it runs, and a serial connection is slow enough that a long diagnostic dump ties up the whole session — running it redundantly from multiple sessions compounds both problems.

FIXUse Telnet or STelnet rather than a serial console for this specific command, never run it from two sessions at once, and on V300R022C10 and later reach for collect diagnostic information instead when only the logs are actually needed.

<HUAWEI> display diagnostic-information dia-info.txt

2. MAC Flapping's Own Counter Can Cap Out and Go Quiet

SYMPTOMdisplay mac-address flapping keeps reporting the same MoveNum value no matter how long the underlying flapping continues, making it look like the moves have stopped.

CAUSEMoveNum is a bounded counter that caps at 65535 — once it saturates it simply stops incrementing, even though the MAC address is still moving between ports or VLANs in the background.

FIXDon't read a static MoveNum as proof the flapping stopped — cross-check display mac-address flapping aged-table for the historical record, and confirm current behaviour against trapbuffer alarms rather than the live counter alone.

<HUAWEI> display mac-address flapping
<HUAWEI> display mac-address flapping aged-table

3. The VXLAN One-Click Diagnosis Only Recognizes Known Patterns

SYMPTOMdisplay vxlan troubleshooting comes back clean, but tenants still can't reach each other across the fabric.

CAUSEThe command auto-matches an Event Description against a defined library of known VXLAN fault signatures — a genuinely novel failure, or one sitting in an adjacent subsystem such as bridge-domain mapping, the underlying IGP, or M-LAG peer-link state, falls outside what it's designed to catch.

FIXTreat a clean result as one data point, not a clearance — pair it with display vxlan tunnel for actual tunnel and VTEP state, and display mac-address bridge-domain for the specific bridge domain in question.

[~Device1] display vxlan troubleshooting
[~Device1] display vxlan tunnel

4. M-LAG's Black-Box Commands Show One Device's Half of the Story

SYMPTOMdisplay dfs black-box arp, or any of the other black-box module variants, looks fine on the device being investigated, yet the M-LAG pair keeps behaving as though the two devices disagree about something.

CAUSEEach display dfs black-box module command captures only the device it's run on — an M-LAG pair is two independent devices synchronizing state over a peer-link, and a discrepancy only shows up by comparing both sides.

FIXPull the same black-box output from both peer devices, or lead with display dfs-group consistency-check global, which exists specifically to catch configuration drift between the two before concluding the state is actually consistent.

[~HUAWEI-diagnose] display dfs black-box arp
<HUAWEI> display dfs-group 1 consistency-check global

5. Mirroring a Spine-Leaf Port Has a Privacy Line, Not Just a Technical One

SYMPTOMConfiguring observe-port and pointing a capture tool at it to chase a packet-level fault between leaf and spine feels like a purely technical step.

CAUSEThe vendor's own documentation flags mirroring as something that may involve capturing or storing the content of someone's actual communications, and states it should only be enabled within whatever scope local law actually allows — the fact that the port sits inside a data center fabric rather than a campus network doesn't change that line.

FIXConfirm scope and authorization before configuring an observe-port and mirroring live traffic to it, especially before pointing a capture tool at the mirrored feed.

[~HUAWEI] observe-port 1 interface 25GE1/0/1
[*HUAWEI-25GE1/0/2] port-mirroring observe-port 1 inbound

The Five Groups, at a Glance

Match the symptom on the left to the group on the right.

display diagnostic-information — the baseline, first, every timeThen match the symptom below to one of the five groups Hardware — board/power/fan/optics faultdisplay device / display device alarm hardware / display device power systemdisplay device elabel / display device board reset slot-id Interface & Packet Loss — link up but droppingdisplay interface / display interface transceiver verbosereset counters interface + ping + re-read / display cpu-defend statistics Table Entries — forwarding to the wrong placedisplay mac-address / display mac-address flapping (+ aged-table)display arp / display arp statistics Protocol — session or overlay won't formdisplay ospf peer verbose / display bgp peer log-infodisplay vxlan troubleshooting + tunnel / display dfs-group + black-box Traffic — capture or policy-hit questionsdisplay port-mirroring / observe-port config / display traffic-policy statistics

Diagram labels are kept in English for engineering clarity.

Related solution designs

FAQ

The questions that come up first once someone actually opens the command dictionary.

How is this different from the Fault Information Collection Checklist note?

That note covers the collection order to follow before you escalate a fault to support — one-shot capture, baseline checklist, log handling, and a cheat sheet by fault type, platform-agnostic across Huawei routers and switches. This one is the day-to-day command dictionary for CloudEngine data center switches specifically, organized by the five scenario groups you already reach for once you have a working theory.

I don't know which of the five groups applies yet — where do I start?

Start with display diagnostic-information (or collect diagnostic information on V300R022C10 and later) for the baseline snapshot, then match the symptom: a board, power or fan issue is Hardware; a link that's up but dropping packets is Interface & Packet Loss; traffic forwarding to the wrong place is Table Entries; a routing or overlay session that won't form is Protocol; anything involving a capture or a traffic-policy hit count is Traffic.

What's the difference between display mac-address flapping and the aged-table variant?

display mac-address flapping shows the live flapping record and its MoveNum counter; the aged-table variant shows entries that have already aged out of that live table. This matters because MoveNum caps at 65535 and stops incrementing once saturated, so the aged history can show flapping the live view no longer reflects.

Does display vxlan troubleshooting replace manually checking the tunnel?

No — it's an automated pattern match against known VXLAN fault signatures, not a full diagnosis. Pair a clean result with display vxlan tunnel for actual tunnel and VTEP state, and with display mac-address bridge-domain for a specific tenant.

On an M-LAG pair, which of the two devices do I run these commands on?

Both. Every display dfs black-box module command only reports the device it's run on, so a discrepancy between the pair only becomes visible by comparing both sides — or by running display dfs-group consistency-check global, built specifically to surface that kind of drift in one command.

Is there still just one command for the whole switch, at data center scale?

Yes — display diagnostic-information file-name is the same one-shot bundle regardless of platform, and from V300R022C10 onward collect diagnostic information adds a lighter option that zips just the log, KPI and PADS files into diagnostic_information.zip without the full display bundle.

Honest Limits of This Note

This is a command dictionary, not a root-cause guide. It's built from the CloudEngine 16800/9800/8800/6800 maintenance handbook's own chapter on common information collection and diagnostic commands, cross-checked against the hardware, MAC, ARP, VXLAN and M-LAG fault-handling chapters in the same handbook. For the collection order to follow before escalating any fault, see the Fault Information Collection Checklist. Once a specific fault type is already confirmed — a port that's physically down, or CPU usage pinned high — the deeper root-cause walkthrough is its own separate note, not this one.

Staring at a command's output and still not sure what it means?

Send us the output and which group it came from — hardware, interface, table entries, protocol or traffic — and we'll help you read it.

WhatsApp an engineer →