display link-heartbeat interface

Function

The display link-heartbeat interface command displays information about link-heartbeat detection on a specified interface.

Format

display link-heartbeat interface { interface-type interface-num | interface-name }

Parameters

Parameter Description Value
interface-type

Interface type.

-

interface-num

Interface number.

-

interface-name

Interface name.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
forwarding read

Usage Guidelines

Usage Scenario

After link-heartbeat detection is enabled, run the display link-heartbeat command to check packet loss and modification information when link-heartbeat detection is performed on a specified interface and check whether a packet loss or modification alarm is generated.

Precautions

A switch is between two routers, and the routers do not send or detect inter-device heartbeat packets. The routers cannot use the SAID ping or trunk detection functions to detect nodes. As a result, the router resilience function fails.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display packet loss and modification information when link-heartbeat detection is performed on Eth-Trunk20 .
<HUAWEI> display link-heartbeat interface Eth-Trunk20
 Detecting port      : Eth-Trunk20                                                                                                  
 Detect member port  : GigabitEthernet0/1/2                                                                                         
 Trunk id            : 0                                                                                                            
 Link-detect Status  : Approach(2)                                                                                                  
 Port ready          : Ready(None)                                                                                                  
 Port avaliable      : Available                                                                                                    
 Port acl download   : Not download(0)                                                                                              
 Lost packet alarm   : Normal                                                                                                       
 Error packet alarm  : Normal                                                                                                       
 IP address          : 192.168.4.1                                                                                                    
 Source MAC          : 00e0-fcad-4d35                                                                                               
 Destination MAC     : 00e0-fcb0-6ee9                                                                                               
 Port mtu            : 1500                                                                                                         
 Send packet length  : 64    64    255    255    512    512    1023    1023    1500    1500    1500    1500                         
 Magic word          : 79** ae** a3** 4b** ef** 51** f2** f0** 18** 56** de** a4**                                                  
 Feature Flag        : 0    255    0    255    0    255    0    90    0    255    0    255                                          
 Cyc times           : 0 (for current status)                                                                                       
 Cyc run time(s)     : 0 (for current cycle)                                                                                        
 Arp detect info     : 0(no arp flag)  0(arp diagnose flag)                                                                         
 Lost packet info    : 0x00(lost packet flag)  0x00(lost packet diagnose flag)                                                      
 Error packet info   : 0x00(error packet flag)  0x00(error packet diagnose flag)                                                    
 Diagnose packet no  : 255                                                                                                          
 Diagnose times      : 0                                                                                                            
 Diagnose timeout    : 0                                                                                                            
 =====Counter Information=====                                                                                                      
 No arp counter  : 0                                                                                                                
 -----Normal status counter-----                                                                                                    
 Total send      : 24                                                                                                               
 Total receive   : 24                                                                                                               
 Template send   : 2  2  2  2  2  2  2  2  2  2  2  2                                                                               
 Template receive: 2  2  2  2  2  2  2  2  2  2  2  2                                                                               
 Template error  : 2  2  2  0  0  0  0  0  0  0  2  2                                                                               
 -----Approach status counter-----                                                                                                  
 Total send      : 0                                                                                                                
 Total receive   : 0                                                                                                                
 Template send   : 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 Template receive: 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 Template error  : 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 Sub cyc0 error  : 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 Sub cyc1 error  : 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 Sub cyc2 error  : 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 Sub cyc3 error  : 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 Sub cyc4 error  : 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 -----Diagnose status counter-----                                                                                                  
 Total send      : 0                                                                                                                
 Total receive   : 0                                                                                                                
 Template send   : 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 Template receive: 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 Template error  : 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 -----All status total counter-----                                                                                                 
 Total send      : 0                                                                                                                
 Total receive   : 0                                                                                                                
 Template send   : 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 Template receive: 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 Template error  : 0  0  0  0  0  0  0  0  0  0  0  0
# Display packet loss and modification information when link-heartbeat detection is performed on GigabitEthernet 0/1/3.
<HUAWEI> display link-heartbeat interface GigabitEthernet 0/1/3
 Detecting port      : GigabitEthernet0/1/3.3 
 Send packet port    : GigabitEthernet0/1/3 
 Is trunk member     : False                                                                                                        
 Link-detect Status  : Normal(1)                                                                                                    
 Port ready          : Ready(None)                                                                                                  
 Port avaliable      : Available                                                                                                    
 Port acl download   : Download(2)                                                                                                  
 Lost packet alarm   : Normal                                                                                                       
 Error packet alarm  : Normal                                                                                                       
 IP address          : 192.168.4.2                                                                                                  
 Source MAC          : 00e0-fc48-906a                                                                                               
 Destination MAC     : 00e0-fce3-bdd1                                                                                               
 Port mtu            : 1500                                                                                                         
 Send packet length  : 64   64   255  255  512  512  1023 1023 1500 1500 1200 1200                                                  
 Magic word          : 79** 6a** bc** 6a** 2d** 6a** c9** f0** fe** 02** f8** 80**                                                  
 Feature Flag        : 0    255  0    255  0    255  0    90   0    255  0    255                                                   
 Cyc times           : 0 (for current status)                                                                                       
 Cyc run time(s)     : 17 (for current cycle)                                                                                       
 Cyc template send   : 2    2    2    2    2    2    1    0    0    0    2    2                                                     
 Arp detect info     : 0(no arp flag)  0(arp diagnose flag)                                                                         
 Lost packet info    : 0x00(lost packet flag)  0x00(lost packet diagnose flag)                                                      
 Error packet info   : 0x00(error packet flag)  0x00(error packet diagnose flag)                                                    
 Diagnose packet no  : 255                                                                                                          
 Diagnose times      : 0                                                                                                            
 Diagnose timeout    : 0                                                                                                            
 =====Counter Information=====                                                                                                      
 No arp counter  : 0                                                                                                                
 -----Normal status counter-----                                                                                                    
 Total send      : 17                                                                                                               
 Total receive   : 17                                                                                                               
 Template send   : 2  2  2  2  2  2  1  0  0  0  2  2                                                                               
 Template receive: 2  2  2  2  2  2  1  0  0  0  2  2                                                                               
 Template error  : 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 -----Approach status counter-----                                                                                                  
 Total send      : 0                                                                                                                
 Total receive   : 0                                                                                                                
 Template send   : 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 Template receive: 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 Template error  : 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 Sub cyc0 error  : 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 Sub cyc1 error  : 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 Sub cyc2 error  : 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 Sub cyc3 error  : 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 Sub cyc4 error  : 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 -----Diagnose status counter-----                                                                                                  
 Total send      : 0                                                                                                                
 Total receive   : 0                                                                                                                
 Template send   : 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 Template receive: 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 Template error  : 0  0  0  0  0  0  0  0  0  0  0  0                                                                               
 -----All status total counter-----                                                                                                 
 Total send      : 5153                                                                                                             
 Total receive   : 5153                                                                                                             
 Template send   : 174  174  174  174  174  174  173  172  172  172  174  174                                                       
 Template receive: 174  174  174  174  174  174  173  172  172  172  174  174                                                       
 Template error  : 0  0  0  0  0  0  0  0  0  0  0  0
Table 1 Description of the display link-heartbeat interface command output
Item Description
Detecting port

Interface that is being detected.

Detect member port

Indicates the member interface that is currently being detected.

Trunk id

ID of the trunk interface.

Link-detect Status

Current detection state:

  • Init: initial state.
  • Normal: normal state.
  • Approach: approaching state.
  • Diagnose: diagnostic state.
Port ready

Whether an interface is ready to send packets:

  • Ready: The interface is ready.
  • Not Ready: The interface is not ready, with the specific reason provided.
Port acl download

Flag indicating whether interface CPACL is delivered:

  • Not download: CPACL is not delivered.
  • Config: CPACL is being delivered.
  • Download: CPACL has been delivered.
  • Download failed: CPACL fails to be delivered.
  • Delete: CPACL is being deleted.
Port mtu

Interface MTU.

Port avaliable

Indicates whether the port is valid.

Lost packet alarm

Flag indicating whether a packet loss alarm is generated:

  • Normal: No packet loss alarm is generated.
  • Alarm: A packet loss alarm is generated.
Lost packet info

Packet loss information and diagnosis flag corresponding to each packet template.

Error packet alarm

Flag indicating whether a packet modification alarm is generated:

  • Normal: No packet modification alarm is generated.
  • Alarm: A packet modification alarm is generated.
Error packet info

Packet modification information and diagnosis flag corresponding to each packet template.

IP address

Interface IP address.

Source MAC

Source MAC address.

Destination MAC

Destination MAC address.

Send packet port

Physical port from which packets are sent.

Send packet length

Packet length corresponding to each packet template.

Magic word

Magic word corresponding to each packet template.

Feature Flag

Packet feature flag corresponding to each packet template.

Cyc times

Serial number of the packet sending cycle in the current state.

Cyc run time(s)

Packet sending time in the current cycle.

Cyc template send

Number of packets sent by the 12 packet templates in the current period.

Arp detect info

ARP fault information and diagnosis flag.

Diagnose timeout

Diagnosis timeout interval.

Diagnose packet no

Diagnosis template ID.

Diagnose times

Number of times the SAID ping is sent to notify the SAID link heartbeat diagnosis and recovery.

No arp counter

Number of cycles in which no ARP information is obtained.

Total send

Total number of sent packets.

Total receive

Number of received packets.

Template send

Number of sent packets corresponding to each packet template.

Template receive

Number of received packets corresponding to each packet template.

Template error

Number of modified packets corresponding to each packet template.

Sub cyc0 error

Number of modified packets in the 12 packet templates in the first small period in the approaching state.

Sub cyc1 error

Number of modified packets in the 12 packet templates in the second small period in the approaching state.

Sub cyc2 error

Number of modified packets in the 12 packet templates in the third small period in the approaching state.

Sub cyc3 error

Number of modified packets in the 12 packet templates in the fourth small period in the approaching state.

Sub cyc4 error

Number of modified packets in the 12 packet templates in the fifth small period in the approaching state.

Is trunk member

Whether an interface is a trunk member interface.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >