dhclient-exit-hooks

Jatinder Goswami jatinder at teamf1.com
Thu Dec 18 01:25:40 UTC 2008


Hi Jolynn,

Which information do you want to write ? Is it only IP address or something
else also.

Jeet.

On Wed, Dec 17, 2008 at 9:03 PM, Jolynn Schmidt <jschmidt at getcollc.com>wrote:

>  hello,
>
> 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.
>
> 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.
>
> #!/bin/bash
> echo test  >> /etc/sysconfig/info.conf
> if [ -n "${DHCP_SERVER}" ]; then
>         echo "dhcpsid=${DHCP_SERVER}" >> /etc/sysconfig/info.conf
> fi
> if [ -n "${DHCPSID}" ]; then
>         echo "DHCPSID=${DHCPSID}" >> /etc/sysconfig/info.conf
> fi
>
> Thanks for your help.
>
> Jolynn Schmidt
>
>
>
>  *  ________________________________  *
> 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.
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20081218/b4341bdb/attachment-0001.html>


More information about the dhcp-users mailing list