Execute or syslog on DHCPDISCOVER

Vizier Jean-Marc jvizier at gmail.com
Thu Aug 16 07:43:13 UTC 2012


Oh my, Thanks for the quick answer :)

I will look to omshell and to your patch, i found your blog with all the 
instructions.

In fact the flat file is for testing only. The final aim is to link with 
our internal DB where we store server informations. So your patch is 
much welcome.

Many Thanks,

Regards,



Good Good, i will look to that,

On 08/15/2012 09:53 PM, Alex Bligh wrote:
>
>
> --On 15 August 2012 21:44:25 +0200 jvizier <jvizier at gmail.com> wrote:
>
>> DHCPDISCOVER from mac -> script that parse flat file on that mac and 
>> send
>> ip etc .. -> DHCPOFFER ip to the client from script
>
> Not to my knowledge. Either you can parse the file yourself on (say)
> cron, and alter you dhcpd.conf, or parse it and manipulate omshell,
> or parse it and manipulate LDAP, or (using my patches) you can execute
> any SQL statement on receipt of a discover which can produce IP,
> options etc. in a dynamic way.
>
> I don't really think you want dhcpd to fork on every packet that
> comes in.
>



More information about the dhcp-users mailing list