Clear BFD statistics

This command helps to reset the specified BFD counter.

Syntax


clear statistics bfd SESS-ID

Description

Reset Bidirectional Forwarding Detection (BFD) statistics.

Options

BFD

Reset Bidirectional Forwarding Detection (BFD) statistics.

SESS-ID

The id of the session whose statistics should be cleared.

Clear BFD statistics: Before clearing statistics

switch# sh bfd

Bidirectional Forwarding Detection (BFD) Information

  Admin Status   : Enabled
  Echo source IP : 2.2.2.2

  Global Statistics:
  Total Number of Control Packets Transmitted  : 13
  Total Number of Control Packets Received     : 13
  Total Number of Control Packets Dropped      : 0

Session VLAN SourceIP       DestIP          Echo  State Application
------ ----- -------------- --------------  ----- ----- -----------
1        20  100.100.100.100 100.100.100.101 Enabled Up    OSPF
switch# show bfd-session 1

BFD Session Information – Session 1
  
  Min Tx Interval (sec)       : 10                 
  Min Rx Interval (sec)       : 10                 
  Min Echo Rx Interval (msec) : 700               
  Detect Multiplier           : 3                 
  Authentication Mode         : NONE                     
  Password                    : ""                    
  Application                 : OSPF       
  Local Discriminator         : 1          
  Remote Discriminator        : 1          
  Echo                        : Enabled  
  Local Diagnostic            : No diagnostics configured.        
  
  VLAN Source IP     Destination IP  State Pkt In Pkt Drop Pkt Out 
  ---- ------------ ---------------   ----- ------ ------- -------
  3    100.100.100.100 100.100.100.101 Up    322      0        320

Clear BFD statistics: After clearing BFD statistics

switch# sh bfd

Bidirectional Forwarding Detection (BFD) Information

  Admin Status   : Enabled
  Echo source IP : 2.2.2.2

  Global Statistics:
  Total Number of Control Packets Transmitted  : 0
  Total Number of Control Packets Received     : 0
  Total Number of Control Packets Dropped      : 0

Session VLAN SourceIP       DestIP          Echo  State Application
------ ----- -------------- --------------  ----- ----- -----------
1        20  100.100.100.100 100.100.100.101 Enabled Up    OSPF
switch# show bfd-session 1

BFD Session Information – Session 1
  
  Min Tx Interval (sec)       : 10                 
  Min Rx Interval (sec)       : 10                 
  Min Echo Rx Interval (msec) : 700               
  Detect Multiplier           : 3                 
  Authentication Mode         : NONE                     
  Password                    : ""                    
  Application                 : OSPF       
  Local Discriminator         : 1          
  Remote Discriminator        : 1          
  Echo                        : Enabled  
  Local Diagnostic            : No diagnostics configured.        
  
  VLAN Source IP     Destination IP  State Pkt In Pkt Drop Pkt Out 
  ---- ------------ ---------------   ----- ------ ------- -------
  3    100.100.100.100 100.100.100.101 Up    0      0       0