Clearing MSDP information
You can clear the following MSDP information:
- Peer information
- Source active cache
- MSDP statistics
Clearing peer information
To clear MSDP peer information, enter the following command at the Privileged EXEC level of the CLI.
device# clear ip msdp peer 205.216.162.1
Syntax: clear ip msdp peer [ip-addr ]
The command in this example clears the MSDP peer connection with MSDP router 205.216.162.1. The CLI displays a message to indicate when the connection has been successfully closed. To clear all the peers, omit the ip-addr variable from the command.
Clearing peer information on a VRF
To clear the MSDP VRF peers, enter the following command at the MSDP VRF configuration level.
device#clear ip msdp vrf blue peer 207.207.162.5
Syntax: clear ip msdp [vrf vrf-name ] peer [ ip-addr ]
Clearing the source active cache
To clear the source active cache, enter the following command at the Privileged EXEC level of the CLI.
device# clear ip msdp sa-cache
Syntax: clear ip msdp sa-cache [ ip-addr ]
The command in this example clears all the cache entries. Use the ip-addr variable to clear only the entries matching either a source or a group.
Clearing the source active cache for a VRF
To clear the MSDP VRF source active cache by entering the following command at the MSDP VRF configuration level.
device#clear ip msdp sa-cache
vrf blue
Syntax: clear ip msdp [vrf vrf-name ] sa-cache [ ip-addr ]
Clearing MSDP statistics
To clear MSDP statistics, enter the following command at the Privileged EXEC level of the CLI.
device# clear ip msdp statistics
Syntax: clear ip msdp statistics [ ip-addr ]
The command in this example clears statistics for all the peers. To clear statistics for only a specific peer, enter the IP address of the peer.
Clearing MSDP VRF statistics
To clear the MSDP VRF statistics by entering the following command.
device# clear ip msdp vrf blue statistics
Syntax: clear ip msdp [vrf vrf-name ] statistics [ip-addr ]
The command in this example clears statistics for all the peers. To clear statistics for only a specific peer, enter the IP address of the peer.
The command in this example clears all statistics for all the peers in the VRF "blue".