Parameter | Description | Value |
---|---|---|
interface interface-type interface-number | Displays statistics about CDP packets received by
a specified interface.
If this parameter is not specified, the command displays statistics about CDP packets received by all the interfaces. |
- |
Usage Scenario
When you need to locate an LLDP fault on a switch according to statistics about CDP packets received, run the display cdp statistics command.
To check statistics about CDP packets received in a specified period of time, run the reset cdp statistics command to clear the historical CDP packet statistics. Wait for the specified period of time, and then run the display cdp statistics command to check the new CDP packet statistics.
Prerequisites
LLDP has been enabled globally using the lldp enable (system view) command, and LLDP compatibility with CDP has been enabled on the specified interface using the lldp compliance cdp receive command.
# Display statistics about CDP packets received by all interfaces.
<HUAWEI> display cdp statistics CDP statistics global Information: Statistics for GigabitEthernet0/0/1: Total frames received: 30 Total frames discarded: 0 Total frames error: 0 Last cleared time: never ---- More ----
Item |
Description |
---|---|
CDP statistics global Information |
Statistics about CDP packets received by the switch. |
Statistics for x |
Statistics about CDP packets received by the x interface. |
Total frames received |
Number of received CDP packets by this interface. |
Total frames discarded |
Number of discarded CDP packets by this interface. |
Total frames error |
Number of received CDP error packets by this interface. |
Last cleared Time |
Time when the statistics about CDP packets received on this
interface are cleared last time:
|