Events 'on commit' and 'on release'

Shawn Routhier sar at isc.org
Mon Oct 21 18:21:54 UTC 2013


on commit and on release are not currently supported in dhcpv6

We plan to include support for them in the upcoming 4.3.0 release.

Shawn

On Oct 18, 2013, at 5:43 AM, Алексей Прокопчук wrote:

> Hi all.
> 
> I use dhcpd in IPv6 mode.
> Tried to use event handlers for commit and release.
> 
> Config is very simple:
> 
> *******************************************
> 
> option domain-name "homel.local";
> option dhcp6.name-servers 2d02:2818:8::1, 2d02:2818:8::5;
> default-lease-time 3600;
> max-lease-time 7200;
> ddns-update-style none;
> authoritative;
> 
> subnet6 2f02:2818:8:1::/64
> {
>  range6 2f02:2818:8:1::2 2d02:2818:8:1::6fff;
>  prefix6 2f02:2818:8:100:: 2d02:2818:8:11f:: /64;
> 
>  on commit  {
>   execute("/etc/dhcp/event","commit");
>  }
> 
>  on release {
>  execute("/etc/dhcp/event","release");
>  }
> 
> }
> 
> *********************************************
> 
> contents of /etc/dhcp/event:
> *********************************************
> !#/bin/sh
> 
> /bin/echo $1 >> /tmp/dhcp-events
> *********************************************
> 
> dhcpd starts and works properly.
> I received addresses and prefixes, all OK.
> But events seems doesn't work. No messages in system log,
> nor error nor success. Nothing about events at all.
> And scripts does not executed.
> I tried to run dhcpd with '-d' parameter, nothing printed to stderr.
> 
> I even tried to run dhcpd with '-u root -g root' to prevent possible
> problems with permissions.
> 
> Maybe I missed something? I have no ideas...
> 
> Thanks in advance, with best regards, Alexey Prokopchuk (AP8686-RIPE)
> 
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users



More information about the dhcp-users mailing list