System Management Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Releases

PDF

System Management Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Releases

Monitor CDP

Want to summarize with AI?

Log in

Use this procedure to monitor Cisco Discovery Protocol (CDP) neighbor and interface information using show commands.


Monitor the neighboring devices and the CDP-enabled interfaces on your network.

Use these commands to view information about CDP-related devices, interfaces, neighbors, and traffic.

Procedure

1.

View details about specific or all neighboring devices.

Example:

Router#show cdp entry
-------------------------
Device ID: chiba
SysName : chiba
Entry address(es): 
Platform: cisco 8000,  Capabilities: Router 
Interface: TenGigE0/2/0/19
Port ID (outgoing port): TenGigE0/0/0/2/0
Holdtime : 171 sec

Version :
26.2.1.19I

advertisement version: 2
Duplex: full
2.

Display information about the interfaces on which CDP is enabled.

Example:

Router#show cdp interface
Tue Jan 20 17:57:15.108 EST
TenGigE0/2/0/19 is Up
  Encapsulation ether
  Sending CDP packets every 10 seconds
  Holdtime is 180 seconds
3.

View information about all neighboring devices.

Example:

Router# show cdp neighbors
Tue Jan 20 17:58:36.451 EST
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater

Device ID       Local Intrfce    Holdtme Capability Platform  Port ID
chiba           Te0/2/0/19       172     R          8000      Te0/0/0/2/0  
4.

Display CDP traffic statistics.

Example:

Router#show cdp traffic
CDP counters :
        Packets output: 61, Input: 58
        Hdr syntax: 0, Chksum error: 0, Encaps failed: 0
        No memory: 0, Invalid packet: 0, Truncated: 0
        CDP version 1 advertisements output: 0, Input: 0
        CDP version 2 advertisements output: 61, Input: 58
        Unrecognize Hdr version: 0, File open failed: 0