Cisco Cisco SG300-28 28-Port Gigabit Managed Switch Technical References

Page of 1053
CDP Commands
622
78-21485-01 Command Line Interface Reference Guide
36
Command Mode 
Global Configuration mode
Interface Configuration mode (Ethernet)
Example 
switchxxxxxx(conf) interface gi1
switchxxxxxx(conf-if) cdp log mismatch native
36.11 cdp device-id format
The cdp device-id format Global Configuration mode command specifies the 
format of the Device-ID TLV. The no format of this command returns to default.
Syntax
cdp device-id format {mac | serial-number | hostname}
no cdp device-id format
Parameters
mac—Specifies that the Device-ID TLV contains the device’s MAC address.
serial-number—Specifies that Device-ID TLV contains the device’s 
hardware serial number.
hostname—Specifies that Device-ID TLV contains the device’s hostname.
Default Configuration 
MAC address is selected by default.
Command Mode 
Global Configuration mode
Example 
switchxxxxxx(conf) cdp device-id format serial-number