clear bgp policy statistics redistribute

To clear policy statistics for the Border Gateway Protocol (BGP) topology table, use the clear bgp policy statistics redistribute command.

clear bgp policy statistics redistribute { direct | eigrp id | ospf id | rip id | static } [ vrf { vrf-name | all | default | management }]

Syntax Description

direct
Clears policy statistics for directly connected routes only.
eigrp
Clears policy statistics for Enhanced Interior Gateway Routing Protocol (EIGRP).
ospf
Clears policy statistics for the Open Shortest Path First (OSPF) protocol.
rip
Clears policy statistics for the Routing Information Protocol (RIP).
static
Clears policy statistics for IP static routes.
id
For the eigrp keyword, an EIGRP instance name from which routes are to be redistributed. The value takes the form of a string. You can enter a decimal number, but Cisco NX-OS stores it internally as a string.
For the ospf keyword, an OSPF instance name from which routes are to be redistributed. The value takes the form of a string. You can enter a decimal number, but Cisco NX-OS stores it internally as a string.
vrf vrf-name
(Optional) Specifies a particular virtual routing and forwarding (VRF) instance. The VRF name is an alphanumeric string of up to 32 characters.
all
(Optional) Specifies the all VRF instance.
default
(Optional) Specifies the default VRF.
management
(Optional) Specifies the management VRF.

Command Default

None

Command Modes

Any command mode

Command History

Release
Modification
5.0(3)N1(1)
This command was introduced.

Usage Guidelines

This command requires the LAN Enterprise Services license.

Examples

This example shows how to clear policy statistics for RIP:

switch# clear bgp policy statistics redistribute rip 201
 

Related Commands

Command
Description
show bgp policy statistics
Displays BGP policy statistics.