<table cellspacing='0' cellpadding='0' border='0' background='none' style='font-family:arial;font-size:10pt;color:rgb(51, 51, 51);background-color:rgb(255, 255, 255);width:100%;'><tr><td valign='top' style='font: inherit;'>one solution for this would be <br><br>to check the existence of dhcpd.pid,  this would be a file in my case it is located in /var/run. you can always do find/locate to find the path.<br><br>if you can find the file dhcpd.pid, then dhcpd would be running otherwise not.<br><br>Thanks,<br>Vasavi.<br><br>--- On <b>Tue, 5/27/08, Raghavendra <i><s.raghu@samsung.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: Raghavendra <s.raghu@samsung.com><br>Subject: How to check if DHCP Server is running in a network<br>To: dhcp-users@isc.org<br>Date: Tuesday, May 27, 2008, 12:26 PM<br><br><div id="yiv302771844">

 
 
<style></style>
<div><font face="Arial" size="2">Hi,</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"> I have a requirement where in I have to check 
after every 3 minutes whether some dhcp server is enabled/running in the 
network. Enabling dhcp client after every 3 minutes is a big over head, so I 
would like to first search/look if any dhcp server running in a network, if 
so i will enable dhcp client to get IP, else I will once again look for dhcp 
server after 3 minutes.</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Thanx in Advance.</font></div>
<div><font face="Arial" size="2">-Raghu.</font></div></div></blockquote></td></tr></table><br>