< Home

display cdp local

Function

The display cdp local command displays local CDP information on a specified interface or all interfaces.

Format

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

Parameters

Parameter Description Value
interface interface-type interface-number
Displays the CDP local information on a specified interface.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

If this parameter is not specified, the command displays CDP local information on all the interfaces.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

To check CDP information on a specified interface or all interfaces, run the display cdp local information.

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 CDP local information on all the interfaces.

<HUAWEI> display cdp local
Remote Table Statistics:
-------------------------------------------------------------------------- 
Remote Table Last Change Time   :0 days, 23 hours, 21 minutes, 37 seconds
Remote Neighbors Added          :0
Remote Neighbors Deleted        :0
Remote Neighbors Dropped        :0
Remote Neighbors Aged           :0
Total Neighbors                 :1

Port information:
--------------------------------------------------------------------------   
Interface GigabitEthernet0/0/1:
CDP Status               :enabled             (default is disabled)             
Total Neighbors          :1  
Interface GigabitEthernet0/0/2:
CDP Status               :enabled      (default is disabled)            
Total Neighbors          :0
  ---- More ----  
Table 1 Description of the display cdp local command output.

Item

Description

Remote Table Statistics

Statistics about CDP neighbors.

Remote Table Last Change Time

Time of the latest update of the CDP neighbor table.

Remote Neighbors Added

Number of added CDP neighbors.

Remote Neighbors Deleted

Number of deleted CDP neighbors.

Remote Neighbors Dropped

Number of CDP neighbors that are deleted because of insufficient storage memory.

Remote Neighbors Aged

Number of CDP neighbors that are deleted by the aging mechanism.

Total Neighbors

Total number of CDP neighbors.

Port information

Local CDP information on all interfaces of the switch.

Interface x

Local CDP information on the x interface.

CDP Status

Whether LLDP compatibility with CDP is enabled on the interface:
  • enabled
  • disabled

You can run the lldp compliance cdp receive command to configure this parameter.

Total Neighbors

Total number of CDP neighbors on the interface.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >