The reset cdp statistics command clears statistics about CDP packets that all interfaces receive and send or CDP packets that a specified interface receives and sends.
Parameter | Description | Value |
---|---|---|
interface interface-type interface-number | Interface
on which statistics about CDP packets are to be cleared.
If this parameter is not specified, CDP packet information about all interfaces is cleared. |
- |
Usage Scenario
If you want to quickly locate and process a CDP fault, you must calculate the numbers of CDP packets sent and received by a device for a specified period. Before collecting specific CDP packet statistics, you can run the reset cdp statistics command to clear existing statistics about CDP packets.
Prerequisites
LLDP has been globally enabled using the lldp enable command in the system view and LLDP has been configured to be compatible with CDP on interfaces using the lldp compliance cdp receive command.
Follow-up Procedure
After running the reset cdp statistics command to clear existing statistics about CDP packets, you can run the display cdp statistics command to check statistics about CDP packets sent and received by a device for a specific period.
Precautions
If you do not set the interface parameter when running the reset cdp statistics command, statistics about CDP packets sent and received by all interfaces are cleared. Exercise caution when running this command.