Article 5K2V3 What is the exact meaning of "On Commit" in ISC DHCP server configuration?

What is the exact meaning of "On Commit" in ISC DHCP server configuration?

by
Elon20
from LinuxQuestions.org on (#5K2V3)
Hi everyone,

I know there are three kinds of events we can use for scripting in ISC dhcpd --> commit, expire and lease. My problem is, I am having a little problem in understanding the "commit" event. I know "commit" event means when the server has made a commitment of a certain lease to a client. But it would be easier to understand this in DORA context.

That means, when the Commit event will trigger ? Is it when the dhcpd is ready to offer a lease to a client? or after it has leased IP to a client?

For example, in the following configuration -
Code:on commit {
set ClientIP = binary-to-ascii(10, 8, ".", leased-address);
set ClientMac = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
log(concat("Commit: IP: ", ClientIP, " Mac: ", ClientMac));
execute("/usr/sbin/test.py", "commit", ClientIP, ClientMac);
}when exactly will the test.py script will execute? Before the DHCP ACK packet exits from DHCP server or after DHCP ACK packet exits from DHCP server?

Thanks in advance. Cheers.latest?d=yIl2AUoC8zA latest?i=LMaTjMj6_H8:HsVCuDpRUUU:F7zBnMy latest?i=LMaTjMj6_H8:HsVCuDpRUUU:V_sGLiP latest?d=qj6IDK7rITs latest?i=LMaTjMj6_H8:HsVCuDpRUUU:gIN9vFwLMaTjMj6_H8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments