clear bgp neighbor counters

clear bgp neighbor [remoteaddr | all] counters


Resets the BGP counters for one or all BGP neighbor sessions to zero.

Syntax Description

remoteaddr Specifies the IPv4 or IPv6 address of a specific BGP neighbor.
all Specifies that counters for all BGP neighbors should be reset.



Usage Guidelines

This command resets the following counters:
  • In-total-msgs
  • Out-total-msgs
  • In-updates
  • Out-updates
  • FsmTransitions

The command clear counters also resets all counter for all BGP neighbors. For BGP, the clearcounters command is equivalent to the following BGP command:

clear bgp neighbor all counters

This command applies to the current VR or VRF context.


The following command resets the counters for the BGP neighbor at

clear bgp neighbor counters


This command was first available in ExtremeXOS 10.1.

Support for IPv6 was added in ExtremeXOS 12.6 BGP.

Platform Availability

This command is available on platforms that support the appropriate license. For complete information about software licensing, including how to obtain and upgrade your license and which licenses support the BGP feature, see the ExtremeXOS and Switch Engine 31.7 Feature License Requirements document.