< Home

display diagnostic-information

Function

The display diagnostic-information command collects and displays all the current diagnostic information or saves diagnostic information in a specified file.

Format

display diagnostic-information [ acl | ap | arp | bfd | decoding | defend | dhcp | engine | evpn | gpm | l2adp | l3adp | lbdt | lldp | mcast | mpls | qos | rrpp | sa | sdk | smlk | srm | sta | stack | stat | stp | ucm | vxlan ] [ file-name ]

  • Only the S5720-EI, S5720-HI, S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730-HI, S5730S-EI, S5730-SI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6720S-SI, S6720-SI, S6730-H, S6730S-H, S6730-S, and S6730S-S support bfd.

  • Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H support mpls.

  • Among S5720-EI switches running V200R009C00 and later versions, only some switches support the MPLS feature. Run the display device capability command on the switch to check the switch's software and hardware capabilities. The switch supports the MPLS feature only when chips also support the MPLS feature.

  • Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support sdk.

  • The stack parameter is supported on a stack only.

  • Only the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5732-H, S6720-HI, S6730S-H, and S6730-H support ap and sta.

  • Only the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support vxlan and evpn.

Parameters

Parameter

Description

Value

acl

Displays ACL information.

-

ap

Displays AP information.

-

arp

Displays ARP information.

-

bfd

Displays BFD information.

-

defend

Displays attack defense information.

-

decoding

Displays decoding information.

-

dhcp

Displays DHCP information.

-

engine

Displays engine information.

-

evpn

Displays EVPN information.

-

gpm

Displays GPM information.

-

l2adp

Displays L2 information.

-

l3adp

Displays L3 information.

-

lbdt

Displays LBDT information.

-

lldp

Displays LLDP information.

-

mcast

Displays multicast information.

-

mpls

Displays MPLS information.

-

qos

Displays QoS information.

-

rrpp

Displays RRPP information.

-

sa

Displays SA information.

-

sdk

Displays sdk information.

-

smlk

Displays Smart Link information.

-

stack

Displays stack information.

-

srm

Displays device information.

-

sta

Displays STA information.

-

stat

Displays basic statistic information.

-

stp

Displays STP information.

-

ucm

Displays UCM module information.

-

vxlan

Displays VXLAN module information.

-

file-name

Specifies the name of the file where diagnostic information is stored.

The value is a string of 5 to 64 characters. The file name extension must be .txt. The default directory where files are stored is flash:/.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

When a fault occurs in the system, you can use the display diagnostic-information command to collect diagnostic information for fault location.

The display diagnostic-information command output includes the output for multiple display commands, such as display clock, display version, and display current-configuration. Running the display diagnostic-information command is like running these display commands in batches.

Precautions

  • If the file-name parameter is not specified, diagnostic information is only displayed on the screen. If the file-name parameter is specified, diagnostic information is only stored to a specified file but not displayed on the screen, and the command level is management level (3).
  • The command output does not support split-screen display.
  • If this command displays a long output, press Ctrl+C to abort this command.

  • This command displays diagnostic information, which helps locate faults but may affect system performance. For example, CPU usage may become high. Therefore, do not use this command when the system is running properly.

  • Running the display diagnostic-information command simultaneously on multiple terminals connected to the device is prohibited. This is because CPU usage of the device may obviously increase and the device performance may be degraded.

  • When you run this command, the device obtains or uses some personal data of users, such as the STA MAC address. Delete the personal data immediately after the command is executed to ensure user data security.

Example

# Display diagnostic information about the device.

<HUAWEI> display diagnostic-information
===========================================================                     
  ===============display interface brief===============                         
===========================================================                     
PHY: Physical
*down: administratively down
#down: LBDT down
(l): loopback
(s): spoofing
(E): E-Trunk down
(b): BFD down
(e): ETHOAM down
(dl): DLDP down
(lb): LBDT block
InUti/OutUti: input utility/output utility
Interface                   PHY   Protocol  InUti OutUti   inErrors  outErrors  
Eth-Trunk5                  down  down         0%     0%          0          0  
Eth-Trunk9                  down  down         0%     0%          0          0  
GigabitEthernet0/0/1        *down down         0%     0%          0          0  
GigabitEthernet0/0/2        *down down         0%     0%          0          0  
GigabitEthernet0/0/3        *down down         0%     0%          0          0  
GigabitEthernet0/0/4        *down down         0%     0%          0          0  
GigabitEthernet0/0/5        up    up           0%     0%          0          0  
GigabitEthernet0/0/6        *down down         0%     0%          0          0  
GigabitEthernet0/0/7        down  down         0%     0%          0          0  
GigabitEthernet0/0/8        *down down         0%     0%          0          0  
GigabitEthernet0/0/9        down  down         0%     0%          0          0  
GigabitEthernet0/0/10       down  down         0%     0%          0          0  
GigabitEthernet0/0/11       up    up           0%     0%          0          0  
GigabitEthernet0/0/12       down  down         0%     0%          0          0  
GigabitEthernet0/0/13       down  down         0%     0%          0          0  
GigabitEthernet0/0/14       down  down         0%     0%          0          0  
GigabitEthernet0/0/15       down  down         0%     0%          0          0  
GigabitEthernet0/0/16       down  down         0%     0%          0          0  
GigabitEthernet0/0/17       down  down         0%     0%          0          0  
GigabitEthernet0/0/18       down  down         0%     0%          0          0  
GigabitEthernet0/0/19       down  down         0%     0%          0          0  
GigabitEthernet0/0/20       *down down         0%     0%          0          0  
GigabitEthernet0/0/21       down  down         0%     0%          0          0  
GigabitEthernet0/0/22       *down down         0%     0%          0          0  
GigabitEthernet0/0/23       down  down         0%     0%          0          0  
GigabitEthernet0/0/24       up    up           0%     0%          0          0  
......

# Save diagnostic information to the file aa.txt in the flash memory.

<HUAWEI> display diagnostic-information aa.txt
Now saving the diagnostic information to the device
 100%
Info: The diagnostic information was saved to the device successfully.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >