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.