show cdp

Use this command to display the status of the CDP discovery protocol and message interval on one or more ports.

Syntax

show cdp [port-string]

Parameters

port-string (Optional) Displays CDP status for a specific port. For a detailed description of possible port-string values, refer to Port String Syntax Used in the CLI in the S-, K-, and 7100 Series Configuration Guide.

Defaults

If port-string is not specified, all CDP information will be displayed.

Mode

All command modes.

Example

This example shows how to display CDP information for ports ge.1.1 through ge.1.9:

System(rw)->show cdp ge.1.1-9
CDP Global Status        : enabled
CDP Versions Supported   : 0x0 0x38
CDP Hold Time            : 180
CDP Authentication Code  : 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
CDP Transmit Frequency   : 60
Port       Status
-----------------
ge.1.1     auto-enable
ge.1.2     auto-enable
ge.1.3     auto-enable
ge.1.4     auto-enable
ge.1.5     auto-enable
ge.1.6     auto-enable
ge.1.7     auto-enable
ge.1.8     auto-enable
ge.1.9     auto-enable

show cdp Output Details provides an explanation of the command output.

Click to expand in new window

show cdp Output Details

Output... What it displays...
CDP Global Status Whether CDP is globally auto-enabled, enabled or disabled. The default state of auto-enabled can be reset with the set cdp state command. For details, refer to set cdp state.
CDP Versions Supported CDP version number(s) supported by the device.
CDP Hold Time Minimum time interval (in seconds) at which CDP configuration messages can be set. The default of 180 seconds can be reset with the set cdp hold-time command. For details, refer to set cdp hold-time.
CDP Authentication Code Authentication code for CDP discovery protocol. The default of 00-00-00-00-00-00-00-00 can be reset using the set cdp auth command. For details, refer to set cdp auth.
CDP Transmit Frequency Frequency (in seconds) at which CDP messages can be transmitted. The default of 60 seconds can be reset with the set cdp interval command. For details, refer to set cdp interval.
Port Port designation. For a detailed description of possible port-string values, refer to the S-, K-, and 7100 Series Configuration Guide.
Status Whether CDP is enabled, disabled or auto-enabled on the port.