<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Gerald,<br>
You could also use this PHP code I wrote a while back to send a
DHCPLEASEQUERY packet<br>
to a server and ask it about a lease like 1.1.1.1 or something you know
is invalid. <br>
This will cause the server to send back a packet stating it has no info
on that lease..which in<br>
turn shows you it is alive and responding. Then just run a cron job on
a remote box or two<br>
which lives in a loop that wakes up periodically, sends a
DHCPLEASEQUERY packet, then<br>
if it gets a response, goes back to sleep. Otherwise, it starts sending
out emails to the<br>
appropriate admins to say that it's unresponsive. <br>
<br>
..or you could be a tad more elaborate and do like I did...write a PHP
daemon that stays<br>
resident on a remote box and makes use of the class above to talk to
the DHCP servers you<br>
want to monitor instead of running a cron job.<br>
<br>
The PHP code for creating/sending DHCPLEASEQUERY packets lives here:<br>
<a class="moz-txt-link-freetext" href="http://www.phpclasses.org/package/6621-PHP-Send-queries-to-a-DHCP-server.html">http://www.phpclasses.org/package/6621-PHP-Send-queries-to-a-DHCP-server.html</a><br>
<br>
Coincidentally, I wrote that class in order to poll the DHCP daemon
each time I receive a <br>
DHCPREQUEST packet with option-82 info in it in order to get timers,
etc. that I otherwise<br>
can't get from tailing the leases file. This lends towards better (and
database driven)<br>
lease tracking..<br>
<br>
Enjoy.<br>
<br>
<pre class="moz-signature" cols="72">--------------------------------------
Patrick T. Winn
Senior Systems Engineer
Cimarron Telephone, Co.
Desk: 918-865-3311 x280
Cell: 918-606-6602</pre>
<br>
<br>
<br>
<br>
On 04/25/2012 06:30 AM, Gerald Vogt wrote:
<blockquote
 cite="mid:CAH=StoJyA63sPc2AcCp+1tEjvVp7F+gAnecHbAfKmwCNV_XnzA@mail.gmail.com"
 type="cite">Send a DHCP request to the server and wait for the answer.
That's the best method to find out whether it's responding or not...
  <div><br>
  </div>
  <div>Gerald<span></span><br>
  <br>
On Wednesday, April 25, 2012, wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div link="blue" vlink="purple" lang="EN-IN">
    <div>
    <p class="MsoNormal"><span style="color: rgb(13, 13, 13);"
 lang="EN-US">Hi,</span></p>
    <p class="MsoNormal"><span style="color: rgb(13, 13, 13);"
 lang="EN-US">In ISC DHCP-4.2.3 , Is there are any ways to identify
that the DHCP process(dhcpd) is hanging on a deadlock or infinite loop
, though the process state is running.</span></p>
    <p class="MsoNormal"><span style="color: rgb(13, 13, 13);"
 lang="EN-US">Is there any interface available or methods available?</span></p>
    <p class="MsoNormal"><span style="color: rgb(13, 13, 13);"
 lang="EN-US"> </span></p>
    <p class="MsoNormal"><span style="color: rgb(13, 13, 13);"
 lang="EN-US">Regards,</span></p>
    <p class="MsoNormal"><span lang="EN-US">Ameen S</span></p>
    </div>
    <p><strong><span
 style="font-size: 10pt; font-family: "Palatino Linotype","serif"; color: green;">
Please do not print this email unless it is absolutely necessary. </span></strong><span
 style="font-family: "Arial","sans-serif";"></span></p>
    <p> The information contained in this electronic message and any
attachments to this message are intended for the exclusive use of the
addressee(s) and may contain proprietary, confidential or privileged
information. If you are not the intended recipient, you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately and destroy all copies of this message and any attachments.
    </p>
    <p>WARNING: Computer viruses can be transmitted via email. The
recipient should check this email and any attachments for the presence
of viruses. The company accepts no liability for any damage caused by
any virus transmitted by this email. </p>
    <p>
    <a moz-do-not-send="true" href="http://www.wipro.com"
 target="_blank">www.wipro.com</a>
    </p>
    </div>
  </blockquote>
  </div>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
dhcp-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 


</pre>
</body>
</html>