Send document comments to nexus3k-docfeedback@cisco.com
5-18
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, NX-OS Release 5.0(3)U1(1)
Chapter 5      Configuring Basic BGP
Configuring Basic BGP
Clearing BGP Information
To clear BGP information, use the following commands:
Command Purpose
clear bgp all {neighbor | * | as-number | 
peer-template name | prefix} [vrf vrf-name]
Clears one or more neighbors from all address 
families. * clears all neighbors in all address 
families. The arguments are as follows:
• neighbor—IPv4 address of a neighbor.
• as-number— Autonomous system number. 
The AS number can be a 16-bit integer or a 
32-bit integer in the form of higher 16-bit 
decimal number and a lower 16-bit decimal 
number in xx.xx format.
• name—Peer template name. The name can be 
any case-sensitive, alphanumeric string up to 
64 characters.
• prefix—IPv4 prefix. All neighbors within that 
prefix are cleared.
• vrf-name—VRF name. All neighbors in that 
VRF are cleared. The name can be any 
case-sensitive, alphanumeric string up to 64 
characters.
clear bgp all dampening [vrf vrf-name] Clears route flap dampening networks in all 
address families. The vrf-name can be any 
case-sensitive, alphanumeric string up to 64 
characters.
clear bgp all flap-statistics [vrf vrf-name] Clears route flap statistics in all address families. 
The vrf-name can be any case-sensitive, 
alphanumeric string up to 64 characters.
clear bgp ip {unicast | multicast} dampening 
[vrf vrf-name]
Clears route flap dampening networks in the 
selected address family. The vrf-name can be any 
case-sensitive, alphanumeric string up to 64 
characters.
clear bgp ip {unicast | multicast} flap-statistics 
[vrf vrf-name]
Clears route flap statistics in the selected address 
family. The vrf-name can be any case-sensitive, 
alphanumeric string up to 64 characters.