cdpr 2.2.1 reviewDownload
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
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 cdpr
into startup scripts and not have it hang if for some reason a CDP packet is never
received (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 should
set your timeout to something greater than 60. There is a default timeout of 5 minutes
so 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 on
the 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 ctually
used, 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 120
This 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:
Fixed server port parsing logic when no port is specified.
cdpr 2.2.1 search tags