Hi <font><font size="2" face="Calibri, sans-serif">Jolynn,<br><br>Which information do you want to write ? Is it only IP address or something else also.<br><br>Jeet.<br></font></font><br><div class="gmail_quote">On Wed, Dec 17, 2008 at 9:03 PM, Jolynn Schmidt <span dir="ltr"><<a href="mailto:jschmidt@getcollc.com">jschmidt@getcollc.com</a>></span> 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>
<font size="2" face="Calibri, sans-serif">
<div>hello,</div>
<div> </div>
<div>I am trying to write out an info file rather then parsing the  leases file that contains the ip address of the DHCP server identifier.  We are going to have a bunch of script that use this info and we want to be able to easily source it.  But I  can't
seem to find the right variable name or documentation on it.  I took a look at dhclient-script but don't see it in there so I was wondering if someone here knows it.   </div>
<div> </div>
<div>I tried a couple of guesses but no luck.  I do see that "test" is written out to the file so I know that it is running the exit hooks.</div>
<div> </div>
<div>#!/bin/bash</div>
<div>echo test  >> /etc/sysconfig/info.conf</div>
<div>if [ -n "${DHCP_SERVER}" ]; then</div>
<div>        echo "dhcpsid=${DHCP_SERVER}" >> /etc/sysconfig/info.conf</div>
<div>fi</div>
<div>if [ -n "${DHCPSID}" ]; then</div>
<div>        echo "DHCPSID=${DHCPSID}" >> /etc/sysconfig/info.conf</div>
<div>fi</div>
<div> </div>
<div>Thanks for your help.</div>
<div> </div>
<div>Jolynn Schmidt</div>
<div> </div>
<div> </div>
<div><font size="3" face="Times New Roman, serif"><br>

</font></div>
<div><font size="3" face="Times New Roman, serif"><u>  ________________________________  </u></font></div>
<div><font size="1" color="#808080" face="Arial, sans-serif">This e-mail and its attachments are intended only for the individual or entity to whom it is addressed and may contain information that is confidential, privileged, inside information, or subject
to other restrictions on use or disclosure. Any unauthorized use, dissemination or copying of this transmission or the information in it is prohibited and may be unlawful. If you have received this transmission in error, please notify the sender immediately
by return e-mail, and permanently delete or destroy this e-mail, any attachments, and all copies (digital or paper). Unless expressly stated in this e-mail, nothing in this message should be construed as a digital or electronic signature.<br>


</font></div>
</font>
</div>

<br>_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br></blockquote></div><br>