DHCPD Scripts
Jeffrey Hutzelman
jhutz at cmu.edu
Thu Sep 25 01:42:01 UTC 2008
--On Wednesday, September 24, 2008 08:45:12 PM -0400 Alan Clegg
<Alan_Clegg at isc.org> wrote:
> Tim Gustafson wrote:
>
>> I am setting up a new ISC-DHCP server on a fresh FreeBSD 7.x box from the
>> ports tree. The server is running fine, but I have a requirement that I
>> can't seem to find a good way to accomplish.
>>
>> Whenever an IP address is leased, renewed or released, I need DHCPD to
>> fire off a shell script that will do a few accounting things for me
>> (update some mySQL data, adjust the box's firewall rules, etc).
>>
>> Is there any way to configure DHCPD to run scripts like that?
>
> Yes. Look at the dhcp-eval man page and search for "execute".
... and also for "on commit"
More information about the dhcp-users
mailing list