dhcp server testing programs

Lyle Giese lyle at lcrcomputer.net
Fri Jan 13 22:38:28 UTC 2012


On 01/13/12 16:23, Ed Ravin wrote:
> On Wed, Jan 11, 2012 at 12:05:36PM -0800, Paul B. Henson wrote:
>> On Tue, Jan 10, 2012 at 11:59:40PM -0800, Christoph Pleger wrote:
>>
>>> By the way, does anybody know about a DHCP client program that simply
>>> retrieves information from the server and displays it (like bootpc
>>> does), but does not try to configure things like IP address etc. locally
>>> on the client machine and does not set itself to background?
>> dhcpcd (http://roy.marples.name/projects/dhcpcd/) supports a test mode:
>>
>>       -T, --test
>>               On receipt of DHCP messages just call
>>               /lib64/dhcpcd/dhcpcd-run-hooks with the reason of TEST which
>>               echos the DHCP variables found in the message to the console.
>>               The interface configuration isn't touched and neither are any
>>               configuration files.  To test INFORM the interface needs to be
>>               configured with the desired address before starting dhcpcd.
> What I need is a program that sends a DHCPDISCOVER and reports the
> results, without actually getting a lease from the server or setting
> up an IP address from the client.  The "dhclient -n" option is
> documented as behaving fairly close to that, except when I tried
> it with isc-dhclient-4.1.2 it turns out the "-n" option is silently
> ignored.
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
Would the Nagios plugin check-dhcp work for your purpose?

It does not appear to be able to get a dhcp response from a dhcp server 
on the same machine/interface but can obtain info from remote dhcp servers.

Lyle Giese
LCR Computer Services, inc.




More information about the dhcp-users mailing list