Skip to main content

Viewing CDP neighbor information

You can view information about the neighboring devices that are connected to each port of the nodes of your cluster, provided that the port is connected to a CDP-compliant device. You can use the cdpd show-neighbors command to view neighbor information. The network device-discovery show command can also be used to display information about neighboring devices.

About this task

Because CDP is always enabled for cluster ports, CDP neighbor information is always displayed for those ports. CDP must be enabled on non-cluster ports for neighbor information to appear for those ports.

Some Cisco switches always send CDP packets that are tagged on VLAN 1 if the native (default) VLAN of a trunk is anything other than 1.

ONTAP supports only CDP packets that are untagged, for sending and receiving. This means that nodes that are running ONTAP are visible to Cisco devices (using the show cdp neighbors command), but only the Cisco devices that send untagged CDP packets are visible to ONTAP.

Display information about all CDP-compliant devices that are connected to the ports on a node in the cluster: run -node node cdpd show-neighbors

Example

The following command shows the neighbors that are connected to the ports on node cluster-1_01:

cluster-1::> run -node cluster-1_01 cdpd show-neighbors
Local Remote Remote Remote Hold Remote
Port Device Interface Platform Time Capability
----- --------------- -------------------- --------------- ----- ----------
e0a sw-215-cr(4C2) GigabitEthernet1/17 cisco WS-C4948 125 RSI
e0b sw-215-11(4C5) GigabitEthernet1/15 cisco WS-C4948 145 SI
e0c sw-215-11(4C5) GigabitEthernet1/16 cisco WS-C4948 145 SI

The output lists the Cisco devices that are connected to each port of the specified node. The Remote Capability column specifies the capabilities of each remote device. The following capabilities are available:

  • R—Router

  • T—Transparent bridge

  • B—Source-route bridge

  • S—Switch

  • H—Host

  • I—IGMP

  • r—Repeater

  • P—Phone