S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
5-37
Cisco MDS 9000 Family CLI Configuration Guide
OL-16184-01, Cisco MDS SAN-OS Release 3.x
Chapter 5 Initial Configuration
Configuring CDP
To globally configure the refresh time interval for the CDP protocol, follow these steps:
To globally configure the hold time advertised in CDP packets, follow these steps:
To globally configure the CDP version, follow these steps:
Clearing CDP Counters and Tables
Use the
clear cdp counters
command to clear CDP traffic counters for all interfaces. You can issue this
command for a specified interface or for all interfaces (management and Gigabit Ethernet interfaces).
switch#
clear cdp counters
Use the
clear cdp table
command to clear neighboring CDP entries for all interfaces. You can issue this
command for a specified interface or for all interfaces (management and Gigabit Ethernet interfaces).
switch#
clear cdp table interface gigabitethernet 4/1
Displaying CDP Information
Use the
show cdp
command to display CDP entries. See Examples
5-1
to
5-11
.
Command
Command
Step 1
switch#
config terminal
switch(config)#
Enters configuration mode.
Step 2
switch(config)#
cdp timer 100
switch(config)#
Sets the refresh time interval in seconds. The default
is 60 seconds and the valid range is from 5 to 255
seconds.
switch(config)#
no cdp timer 100
switch(config)#
Reverts the refresh time interval to the factory
default of 60 seconds.
Command
Command
Step 1
switch#
config terminal
switch(config)#
Enters configuration mode.
Step 2
switch(config)#
cdp holdtime 200
Sets the hold time advertised in CDP packets in
seconds. The default is 180 seconds and the valid
range is from 10 to 255 seconds.
switch(config)#
no cdp holdtime 200
Reverts the hold time to the factory default of 180
seconds.
Command
Command
Step 1
switch#
config terminal
switch(config)#
Enters configuration mode.
Step 2
switch(config)#
cdp advertise v1
Sets the CDP version to be used. The default is
version 2 (v2). The valid options are
v1
and
v2
.
switch(config)#
no advertise v1
Reverts the version to the factory default of
v2
.