<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Andale Mono; font-size: 10pt; color: #000000'>On some man page, I read that ddns updates use the events.  Since ddns is supported in DHCPv6 (as far as I can tell) does that mean events are supported as well?  Is it a bug that statements such as this:<div><hr></div><div><div>on commit {</div><div>        log(info,"I committed a lease");</div><div>}</div><div><hr></div>do nothing on a running ISC DHCPv6 server (4.2.3p1)?<br><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"perl-list" <perl-list@network1.net><br><b>To: </b>"Users of ISC DHCP" <dhcp-users@lists.isc.org><br><b>Sent: </b>Friday, January 20, 2012 2:45:08 PM<br><b>Subject: </b>Re: Events and DHCPv6<br><br><style>p { margin: 0; }</style><div style="font-family: Andale Mono; font-size: 10pt; color: #000000"><font face="'Andale Mono'" size="2">Just in case there is some confusion, I'm referring to the Reference: Events as defined in man 5 dhcpd.conf</font><div style="color: rgb(0, 0, 0); font-family: 'Andale Mono'; font-size: 10pt; "><br></div><div><div><font face="'Andale Mono'" size="2">REFERENCE: EVENTS</font></div><div><font face="'Andale Mono'" size="2">       There are three kinds of events that can happen regarding a lease, and it is possible to declare statements that occur when any of these events happen.   These events are the commit event, when the server has made a commitment of a certain lease to</font></div><div><font face="'Andale Mono'" size="2">       a client, the release event, when the client has released the server from its commitment, and the expiry event, when the commitment expires.</font></div><div><font face="'Andale Mono'" size="2"><br></font></div><div><font face="'Andale Mono'" size="2">       To declare a set of statements to execute when an event happens, you must use the on statement, followed by the name of the event, followed by a series of statements to execute when the event happens, enclosed in braces.   Events are used to imple-</font></div><div><font face="'Andale Mono'" size="2">       ment DNS updates, so you should not define your own event handlers if you are using the built-in DNS update mechanism.</font></div><div><font face="'Andale Mono'" size="2"><br></font></div><div><font face="'Andale Mono'" size="2">       The  built-in  version  of the DNS update mechanism is in a text string towards the top of server/dhcpd.c.   If you want to use events for things other than DNS updates, and you also want DNS updates, you will have to start out by copying this code</font></div><div><font face="'Andale Mono'" size="2">       into your dhcpd.conf file and modifying it.</font></div><div style="color: rgb(0, 0, 0); font-family: 'Andale Mono'; font-size: 10pt; "><br></div><br><div style="color: rgb(0, 0, 0); font-family: 'Andale Mono'; font-size: 10pt; "><br></div><hr id="zwchr" style="color: rgb(0, 0, 0); font-family: 'Andale Mono'; font-size: 10pt; "><blockquote style="border-left-width: 2px; border-left-style: solid; border-left-color: rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica, Arial, sans-serif; font-size: 12pt; "><b>From: </b>"perl-list" <perl-list@network1.net><br><b>To: </b>"Users of ISC DHCP" <dhcp-users@lists.isc.org><br><b>Sent: </b>Thursday, January 19, 2012 8:10:31 AM<br><b>Subject: </b>Re: Events and DHCPv6<br><br><style>p { margin: 0; }</style><div style="font-family: Andale Mono; font-size: 10pt; color: #000000">Folks,<div><br></div><div>Has anyone experimented with the 'on' as pertains to DHCPv6?  Does anyone have any information?  Perhaps a developer could comment in regards to this?  We use this functionality to generate custom log messages in DHCPv4.  We really need to be able to do similar in DHCPv6.<br><br><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"perl-list" <perl-list@network1.net><br><b>To: </b>"Users of ISC DHCP" <dhcp-users@lists.isc.org><br><b>Sent: </b>Friday, January 13, 2012 1:43:36 PM<br><b>Subject: </b>Events and DHCPv6<br><br><style>p { margin: 0; }</style><div style="font-family: Andale Mono; font-size: 10pt; color: #000000">Folks,<div><br></div><div>Are there new event keywords for DHCPv6?  I have not seen anything in the man pages either new or saying that the old events do not apply to DHCPv6.  </div><div><br></div><div>For example, this statement:</div><div><hr></div><div><div>on commit {</div><div>        log(info,"I committed a lease");</div><div>}</div><div><hr></div><div>does nothing in the case of DHCPv6 address allocation events.  </div><div><br></div><div>Is there some new method, or are events just not supported yet in DHCPv6?</div><br><div><br></div></div></div><br>_______________________________________________<br>dhcp-users mailing list<br>dhcp-users@lists.isc.org<br>https://lists.isc.org/mailman/listinfo/dhcp-users</blockquote><br></div></div><br>_______________________________________________<br>dhcp-users mailing list<br>dhcp-users@lists.isc.org<br>https://lists.isc.org/mailman/listinfo/dhcp-users</blockquote><br></div></div><br>_______________________________________________<br>dhcp-users mailing list<br>dhcp-users@lists.isc.org<br>https://lists.isc.org/mailman/listinfo/dhcp-users</blockquote><br></div></div></body></html>