< Home

reset bfd statistics

Function

The reset bfd statistics command clears the statistics on the sent and received packets.

Format

reset bfd statistics { all | discriminator discriminator-value }

Parameters

Parameter Description Value
all Clears statistics on received and sent BFD packets. -
discriminator discriminator-value Clears the statistics of the specified discriminator. It is an integer ranging from 1 to 16383.

Views

User view

Default Level

3: Management level

Usage Guidelines

None

Example

# Display the statistics on the packets of the BFD session.

<sysname> display bfd statistics session all
--------------------------------------------------------------------------------
Session MIndex : 256       (Multi Hop) State : Up      Name : 1               
--------------------------------------------------------------------------------
  Session Type                        : Static 
  Local/Remote Discriminator          : 100/100     
  Received Packets                    : 456058     
  Send Packets                        : 456058         
  Received Bad Packets                : 0          
  Send Bad Packets                    : 0              
  Down Count                          : 0         
  ShortBreak Count                    : 0        
  Create Time                         : 2011/06/18 14:00:44     
  Last Down Tim            
  Total Time From Last DOWN           : 000D:00H:29M:58S
  Total Time From Create              : 000D:00H:29M:58S
--------------------------------------------------------------------------------
     Total Session Number : 1

# Clear the statistics on the packets of the BFD session.

<sysname> reset bfd statistics all

# Display the statistics on the packets of the BFD session again. You can find that the statistics on the sent and received packets are cleared.

<sysname> display bfd statistics session all
--------------------------------------------------------------------------------
Session MIndex : 256       (Multi Hop) State : Up      Name : 1               
--------------------------------------------------------------------------------
  Session Type                        : Static    
  Local/Remote Discriminator          : 100/100     
  Received Packets                    : 0      
  Send Packets                        : 0
  Received Bad Packets                : 0
  Send Bad Packets                    : 0          
  Down Count                          : 0           
  ShortBreak Count                    : 0                      
  Create Time                         : 2011/06/18 14:00:44   
  Last Down Time                      : 0000/00/00 00:00:00     
  Down Status Lasting Time            : 000D:00H:29M:58S       
  Total Time From Create              : 000D:00H:29M:58S    
--------------------------------------------------------------------------------
    Total Session Number : 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >