Examples
The following example displays all CDP-capable interfaces and
parameters:
switch# show cdp all
GigabitEthernet4/1 is up
CDP enabled on interface
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
GigabitEthernet4/8 is down
CDP enabled on interface
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
mgmt0 is up
CDP enabled on interface
Sending CDP packets every 100 seconds
Holdtime is 200 seconds
The following example displays all CDP neighbor entries:
switch# show cdp entry all
----------------------------------------
Device ID:Switch
System Name:
Interface address(es):
Platform: cisco WS-C2950T-24, Capabilities: Switch IGMP Filtering
Interface: mgmt0, Port ID (outgoing port): FastEthernet0/24
Holdtime: 152 sec
Version:
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(19)EA1c, RELEASE SOFTWARE
(fc2)
Copyright (c) 1986-2004 by cisco Systems, Inc.
Compiled Mon 02-Feb-04 23:29 by yenanh
Advertisement Version: 2
Native VLAN: 1
Duplex: full
The following example displays the specified CDP neighbor:
switch# show cdp entry name 0
----------------------------------------
Device ID:0
Entry address(es):
IP Address: 209.165.200.226
Platform: DS-X9530-SF1-K9, Capabilities: Host
Interface: GigabitEthernet4/1, Port ID (outgoing port): GigabitEthernet4/1
Holdtime: 144 sec
Version:
1.1(0.144)
Advertisement Version: 2
Duplex: full
The following example displays global CDP parameters:
switch# show cdp global
Global CDP information:
CDP enabled globally
Sending CDP packets every 60 seconds
Sending a holdtime value of 180 seconds
Sending CDPv2 advertisements is enabled
The following example displays CDP parameters for the management
interface:
switch# show cdp interface mgmt 0
mgmt0 is up
CDP enabled on interface
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
The following example displays CDP parameters for the Gigabit
Ethernet interface:
switch# show cdp interface gigabitethernet 4/1
GigabitEthernet4/1 is up
CDP enabled on interface
Sending CDP packets every 80 seconds
Holdtime is 200 seconds
The following example displays CDP neighbors (brief):
switch# show cdp neighbors
Capability Codes: R - Router, T - Trans-Bridge, B - Source-Route-Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID Local Intrfce Hldtme Capability Platform Port ID
0 Gig4/1 135 H DS-X9530-SF1- Gig4/1
069038732(Kiowa2 mgmt0 132 T S WS-C5500 8/11
069038747(Kiowa3 mgmt0 156 T S WS-C5500 6/20
069038747(Kiowa3 mgmt0 158 T S WS-C5500 5/22
The following example displays CDP neighbors (detail):
switch# show CDP neighbor detail
----------------------------------------
Device ID:Switch
System Name:
Interface address(es):
Platform: cisco WS-C2950T-24, Capabilities: Switch IGMP Filtering
Interface: mgmt0, Port ID (outgoing port): FastEthernet0/24
Holdtime: 137 sec
Version:
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(19)EA1c, RELEASE SOFTWARE
(fc2)
Copyright (c) 1986-2004 by cisco Systems, Inc.
Compiled Mon 02-Feb-04 23:29 by yenanh
Advertisement Version: 2
Native VLAN: 1
Duplex: full
The following example displays the specified CDP neighbor (detail):
switch# show CDP neighbors interface gigabitethernet 4/1 detail
----------------------------------------
Device ID:0
Entry address(es):
IP Address: 209.165.200.226
Platform: DS-X9530-SF1-K9, Capabilities: Host
Interface: GigabitEthernet4/1, Port ID (outgoing port): GigabitEthernet4/1
Holdtime: 144 sec
Version:
1.1(0.144)
Advertisement Version: 2
Duplex: full
The following example displays CDP traffic statistics for the
management interface:
switch# show cdp traffic interface mgmt 0
----------------------------------------
Traffic statistics for mgmt0
Input Statistics:
Total Packets: 1148
Valid CDP Packets: 1148
CDP v1 Packets: 1148
CDP v2 Packets: 0
Invalid CDP Packets: 0
Unsupported Version: 0
Checksum Errors: 0
Malformed Packets: 0
Output Statistics:
Total Packets: 2329
CDP v1 Packets: 1164
CDP v2 Packets: 1165
Send Errors: 0
The following example displays CDP traffic statistics for the Gigabit
Ethernet interface:
switch# show cdp traffic interface gigabitethernet 4/1
----------------------------------------
Traffic statistics for GigabitEthernet4/1
Input Statistics:
Total Packets: 674
Valid CDP Packets: 674
CDP v1 Packets: 0
CDP v2 Packets: 674
Invalid CDP Packets: 0
Unsupported Version: 0
Checksum Errors: 0
Malformed Packets: 0
Output Statistics:
Total Packets: 674
CDP v1 Packets: 0
CDP v2 Packets: 674
Send Errors: 0