cdpr

cdpr is used to decode a Cisco Disovery Protocol (CDP) packet.
Download

cdpr Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Lance O'Connor
  • Publisher web site:

cdpr Tags


cdpr Description

cdpr is used to decode a Cisco Disovery Protocol (CDP) packet. cdpr is used to decode a Cisco Disovery Protocol (CDP) packet, by default it will report the device ID, the IP Address (of the device), and the port number that the machine is connected to. Optionally it will decode the entire CDP packet.This version provides the ability to include a timeout so that you can put cdprinto startup scripts and not have it hang if for some reason a CDP packet is neverreceived (i.e. CDP is disabled, machine is plugged into a hub, etc.) The following command line option has been added to complete the program:-t timeout: Specify a timeout (in seconds) to wait for a CDP packet.Please note that the default time between CDP packets is 60 seconds so you shouldset your timeout to something greater than 60. There is a default timeout of 5 minutesso that should you not provide a timeout, cdpr will still exit if there is no CDP packet received within 5 minutes.This version also allows you to specify the server and URL to send CDP updates to onthe command line. The following command line options have been added:-s server: Server to send information to requires -p (overridden by -u)-p path: Path of server script to send data to requires -s (overridden by -u)As you can see if you specify -s, -p and -u on the command line, the config file is ctuallyused, and the -s and -p options are ignored. Both the -s and -p options must be specified and cdpr will exit if only one of them is given. An example as to how to use the -s and -p flags: cdpr -d eth0 -s localhost -p /cgi-bin/cdprs.cgi -t 120This will listen for a CDP announcement on device eth0 for up to 2 minutes (120 seconds) and send the results to the webserver running on the local machine by calling the /cgi-bin/cdprs.cgi page. What's New in This Release: · This release adds the ability to decode the IPv6 addresses contained in the CDP packet and report them to the server.


cdpr Related Software