2017-08-04

Using CDPR to check information about network switch and port

I have posted in the past on my previous blog about how to discover this network information and this is using tcpdump.  Now I needed to post about the use of CDPR - Cisco Discovery Protocol Reporter so as not to forget this, after all this is quite useful tool.

$ hostname
benue

$ sudo rpm -ivh ftp://195.220.108.108/linux/epel/6/x86_64/cdpr-2.4-1.el6.x86_64.rpm
Retrieving ftp://195.220.108.108/linux/epel/6/x86_64/cdpr-2.4-1.el6.x86_64.rpm
warning: /var/tmp/rpm-tmp.8ET6wR: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing...                ########################################### [100%]
   1:cdpr                   ########################################### [100%]

$ sudo cdpr -d bond0
cdpr - Cisco Discovery Protocol Reporter
Version 2.4
Copyright (c) 2002-2010 - MonkeyMental.com

Using Device: bond0
Waiting for CDP advertisement:
(default config is to transmit CDP packets every 60 seconds)
Device ID
  value:  sdkbn2p01nn053(SSI160209PE)
Addresses
  value:  10.200.190.130
Port ID
  value:  Ethernet100/1/8

No comments:

Post a Comment