1271
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
OL-27880-02
Chapter Show Commands
show cdp neighbors
show cdp neighbors
To display the Cisco Discovery Protocol (CDP) neighbors, use the show cdp neighbors command.
show cdp neighbors [interface {ethernet slot/[QSFP-module/]port | mgmt mgmt-num}] [detail]
Syntax Description
Command Default None
Command Modes EXEC mode
Command History
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
S - Switch, H - Host, I - IGMP, r - Repeater,
V - VoIP-Phone, D - Remotely-Managed-Device,
s - Supports-STP-Dispute
Device-ID Local Intrfce Hldtme Capability Platform Port ID
sw-sw70 mgmt0 145 S I WS-C3560E-48T Gig0/30
switch(FOC16333ZER)
Eth1/4 169 S I s N6K-C6004-96Q Eth1/12
switch(FOC16333ZER)
Eth1/6 173 S I s N6K-C6004-96Q Eth1/10
switch(FOC16333ZER)
Eth1/10 175 S I s N6K-C6004-96Q Eth1/6
switch(FOC16333ZER)
Eth1/12 169 S I s N6K-C6004-96Q Eth1/4
switch#
This example shows how to display the CDP neighbors for a specific Ethernet interface:
interface (Optional) Displays CDP neighbor information for an interface, Ethernet
or management.
ethernet
slot/[QSFP-module/]port
(Optional) Displays CDP neighbor information for an Ethernet interface.
The slot number is from 1 to 255. The QSFP-module number is from 1
to 4. The port number is from 1 to 128.
Note The QSFP-module number applies only to the QSFP+ Generic
Expansion Module (GEM).
mgmt mgmt-num (Optional) Displays CDP neighbor information for a management
interface. The management interface number is 0.
detail (Optional) Displays the detailed information about CDP neighbors.
Release Modification
6.0(2)N1(1) Support for the QSFP+ GEM was added.
5.2(1)N1(1) This command was introduced.