LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-14-2021, 11:15 PM   #1
Elon20
LQ Newbie
 
Registered: Jun 2021
Distribution: RedHat, CentOS
Posts: 3

Rep: Reputation: Disabled
Smile What is the exact meaning of "On Commit" in ISC DHCP server configuration?


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.
 
Old 06-15-2021, 10:56 AM   #2
Elon20
LQ Newbie
 
Registered: Jun 2021
Distribution: RedHat, CentOS
Posts: 3

Original Poster
Rep: Reputation: Disabled
Reposted this question in Networking section since probably that is more appropriate. Can't find the delete thread button here.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what is exact meaning of "obj-m = *.o" in kernel module Makefile Bhoomil Linux - Kernel 1 10-03-2013 04:55 PM
How do I perform maintenance on a master DNS/DHCP (BIND9/ISC-DHCP) Ubuntu server? Sniperm4n Linux - Server 2 09-09-2013 01:19 PM
Convert Linux ISC DHCP to Windows Netsh DHCP ravmohun Linux - Server 3 03-01-2012 04:29 AM
the exact meaning of pcpu eidbadrlt Linux - Newbie 1 01-28-2012 01:56 AM
Migrate DHCP from Microsoft to ISC DHCP on Linux rsmccain Linux - Networking 4 10-27-2006 07:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration