Configuring for Network Management Applications

CDP

Viewing the Switch’s Current CDP Configuration

Syntax: show cdp

Lists the switch’s global and per-port CDP configuration.

This example shows the default CDP configuration.

CDP Enable/Disable on the Switch

Packet Hold Time in CDP Neighbor Table

Interval for Transmitting Outbound

CDP Packets on All Ports

Per-Port CDP Enable/Disable

Figure 13-14. Example of Show CDP with the Default CDP Configuration

Viewing the Switch’s Current CDP Neighbors Table

Devices are listed by the port on which they were detected.

Syntax: show cdp neighbors

Lists the neighboring CDP devices the switch detects, with a subset of the information collected from the device’s CDP packet. (For more on this topic, refer to table 13-4, “CDP Neighbors Data” on page 13-39.)

[ [e] port-numb [detail] ]

Lists the CDP-aware device connected to the specified port. (Allows only one port at a time.) Using detail provides a longer list of details on the CDP-aware device the switch detects on the specified port.

[detail [ [e] port-num ] ]

Provides a list of the details for all of the CDP-aware devices the switch detects. Using port-numproduces a list of details for the selected port.

(For more on this topic, see “CDP Neighbor Data and MIB Objects” on page 13-38.)

13-32