2-287
Catalyst 6500 Series Switch Command Reference—Release8.4
OL-6244-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands set cdp
set cdp
To enable, disable, or configure Cisco Discovery Protocol (CDP) features globally on a ll po rt s o r on
specified ports, use the set cdp command.
set cdp {enable | disable} {mod/ports...}
set cdp interval interval
set cdp holdtime holdtime
set cdp version v1 | v2
set cdp format device-id {mac-address | other}
Syntax Description
Defaults The default system configuration has CDP enabled. The message interval is set to 60 seconds for every
port; the default TTL value has the message interval globally set to 180 sec onds. Th e default C DP
version is version 2.
Command Types Switch command.
Command Modes Privileged.
enable Enables the CDP feature.
disable Disables the CDP feature.
mod/ports.. Number of the module and the ports on the module.
interval Specifies the CDP message interval value.
interval Number of seconds the system waits before sending a message; valid values are from 5
to 900 seconds.
holdtime Specifies the global Time-To-Live (TTL) value.
holdtime Number of seconds for the global TTL value; valid values are from 10 to 255 seconds.
version
v1 | v2 Specifies the CDP version number.
format
device-id Sets the format of the device ID type-length value (TLV).
mac-address Specifies that the device ID TLV carry the MAC address of the sending device in ASCII,
in canonical format.
other Specifies that the device’s hardware serial number concatenated with the device name
between parenthesis.