device-identity name cdp type value

Syntax

device-identity name <name> cdp type <cdp-type> value <value>
no device-identity name <name> cdp type <cdp-type> value <value>

Description

Configures device-identity using CDP protocol.

The no form of this command disables CDP protocol.

Command context

config

Parameters

name

Specifies the name of the device to be discovered.

cdp-type

Specifies the type in CDP packets.

value
Specifies the value of voip-vlan-query in CDP packets.

Examples

Switch#device-identity 
 name                  Specify name of the device to be discovered.
Switch(config)#device-identity name 
 ASCII-STR             Enter an ASCII string.
Switch(config)#device-identity name test 
 cdp                   Configuring device identity using CDP protocol.
 lldp                  Use LLDP's organizational specific TLV type 127 to identify device.

Switch(config)#device-identity name test cdp 
 type                  Specify the type in CDP.
Switch(config)#device-identity name test cdp type 
 voip-vlan-query       Configure the CDP type as VoIP
Switch(config)#device-identity name test cdp type voip-vlan-query 
 value                 Specify the data in CDP.
Switch(config)#device-identity name test cdp type voip-vlan-query value
 VALUE-STR             Configure the CDP value.
Switch(config)#show device-identity cdp
Device Identity Configuration

Index  Device name            Protocol      
 ------ ---------------------- --------------
1      test                   LLDP/ CDP     
NOTE:

You can configure device-identity using LLDP. See Management and Configuration Guide of your switch.