<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>  My requirement is to check whether dhcp 
server is running in a network, where my device is connected? its not on the 
same device but on a different device in some network.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-Raghu</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=y_vasavi@yahoo.com href="mailto:y_vasavi@yahoo.com">y vasavi</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=dhcp-users@isc.org 
  href="mailto:dhcp-users@isc.org">dhcp-users@isc.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, May 27, 2008 12:57 
PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: How to check if DHCP Server 
  is running in a network</DIV>
  <DIV><BR></DIV>
  <TABLE 
  style="FONT-SIZE: 10pt; WIDTH: 100%; COLOR: rgb(51,51,51); FONT-FAMILY: arial; BACKGROUND-COLOR: rgb(255,255,255)" 
  cellSpacing=0 cellPadding=0 background=none border=0>
    <TBODY>
    <TR>
      <TD vAlign=top>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><<A 
        href="mailto:s.raghu@samsung.com">s.raghu@samsung.com</A>></I></B> 
        wrote:<BR>
        <BLOCKQUOTE 
        style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">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></TBODY></TABLE><BR></BLOCKQUOTE></BODY></HTML>