Show Commands
show cdp neighbors
To display the Cisco Discovery Protocol (CDP) neighbors, use the show cdp neighbors command.
show cdp neighbors [interface {ethernet slot / port| mgmt mgmt-num}] [detail]
Syntax Description
interface
ethernet slot /port
mgmt mgmt-num
detail
Command Default
None
Command Modes
EXEC mode
Command History
Release
5.0(3)N2(1)
Examples
This example shows how to display all CDP neighbors:
switch# show cdp neighbors
Capability Codes: R - Router, T - Trans-Bridge, B - Source-Route-Bridge
Device ID
savbu-qa-dist-120
swor96(SSI13110AAQ)
swor96(SSI13110AAQ)
swor95(SSI13110AAS)
switch#
This example shows how to display the CDP neighbors for a specific Ethernet interface:
switch# show cdp neighbors interface ethernet 1/29
Capability Codes: R - Router, T - Trans-Bridge, B - Source-Route-Bridge
Modification
This command was introduced.
S - Switch, H - Host, I - IGMP, r - Repeater,
V - VoIP-Phone, D - Remotely-Managed-Device,
s - Supports-STP-Dispute, M - Two-port Mac Relay
Local Intrfce
Hldtme
mgmt0
177
Eth1/17
165
Eth1/18
165
Eth1/29
171
Cisco Nexus 5000 Series Interfaces Command Reference
(Optional) Displays CDP neighbor information for
an interface, Ethernet or management.
(Optional) Displays CDP neighbor information for
an Ethernet interface. The slot number is from 1 to
255 and the port number is from 1 to 128
(Optional) Displays CDP neighbor information for a
management interface. The management interface
number is 0.
(Optional) Displays the detailed information about
CDP neighbors.
Capability
Platform
S I
WS-C3750E-24T Gig1/0/13
S I s
N5K-C5010P-BF Eth1/19
S I s
N5K-C5010P-BF Eth1/20
S I s
N5K-C5010P-BF Eth1/19
show cdp neighbors
Port ID
101