dhclient-exit-hooks

Jolynn Schmidt jschmidt at Getcollc.com
Wed Dec 17 15:33:55 UTC 2008


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20081217/ded47825/attachment.html>


More information about the dhcp-users mailing list