#!/bin/bash
#
# Well, this is for CentOS and download Cisco Discovery Protocol Reporter
# and its dependancy. Run it and find out what switch port you are on, etc.
#
#yum install libpcap

#Normally libpcap is in Base, but sometime customers repos are jacked, so just get the RPM for this too:

cd /root

wget ftp://ftp.pbone.net/mirror/ftp.centos.org/4.6/updates/i386/RPMS/libpcap-0.8.3-12.el4_6.1.i386.rpm 
# wget www.timelordz.com/scripts/libpcap-0.8.3-12.el4_6.1.i386.rpm #Alternative
rpm -ivh libpcap-0.8.3-12.el4_6.1.i386.rpm

wget ftp://mirror.switch.ch/mirror/epel/4/i386/cdpr-2.2.1-3.el4.i386.rpm
# wget www.timelordz.com/scripts/cdpr-2.2.1-3.el4.i386.rpm #Alternative 
rpm -ivh cdpr-2.2.1-3.el4.i386.rpm

echo
echo "cpr is installed. To use: #cdpr -d eth0"


