Specifications
set cdp state
3-56 Basic Configuration
set cdp state
UsethiscommandtoenableordisabletheCDPdiscoveryprotocolononeormoreports.
Syntax
set cdp state {auto | disable | enable} [port-string]
Parameters
Defaults
Ifport‐stringisnotspecified,theCDPstatewillbegloballyset.
Mode
Switchcommand,read‐write.
Examples
ThisexampleshowshowtogloballyenableCDP:
C3(su)->set cdp state enable
ThisexampleshowshowtoenabletheCDPforportfe.1.2:
C3(su)->set cdp state enable fe.1.2
ThisexampleshowshowtodisabletheCDPforportfe.1.2:
C3(su)->set cdp state disable fe.1.2
set cdp auth
UsethiscommandtosetaglobalCDPauthenticationcode.
Syntax
set cdp auth auth-code
Parameters
Defaults
None.
auto|disable|
enable
Auto‐enables,disablesorenables theCDPprotocolonthespecifiedport(s).
Inauto‐enablemode,whichisthedefaultmodeforallports,aport
automaticallybecomesCDP‐enableduponreceivingitsfirstCDPmessage.
port‐string (Optional)EnablesordisablesCDPonspecificport(s).
Foradetailed
descriptionofpossibleport‐stringvalues,referto“PortStringSyntaxUsed
intheCLI”onpage4‐1.
auth‐code SpecifiesanauthenticationcodefortheCDPprotocol.Thiscanbeupto16
hexadecimalvaluesseparatedbycommas.