< Home

display cdp statistics

Function

The display cdp statistics command displays statistics about CDP packets received.

Format

display cdp statistics [ interface interface-type interface-number ]

Parameters

Parameter Description Value
interface interface-type interface-number
Displays statistics about CDP packets received by a specified interface.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

If this parameter is not specified, the command displays statistics about CDP packets received by all the interfaces.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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.

Example

# 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 ----
Table 1 Description of the display cdp statistics command output

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:
  • If the statistics about CDP packets on this interface have been cleared, the time is displayed.
  • If the statistics about CDP packets on this interface have never been cleared, never is displayed.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >