LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Closed Thread
  Search this Thread
Old 06-15-2021, 10:53 AM   #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));
    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 OFFER packet exits from DHCP server?

Thanks in advance. Cheers

Last edited by Elon20; 06-15-2021 at 12:13 PM.
 
Old 06-15-2021, 11:37 AM   #2
elgrandeperro
Member
 
Registered: Apr 2021
Posts: 415
Blog Entries: 2

Rep: Reputation: Disabled
I believe it is when a lease is to be added or updated. I ran a 2 server active/active ISC dhcpd service, they communicate to each other so I assume it is when the database is updated from one to the other because is is shared. In a single server context, might not make sense.
 
Old 06-15-2021, 12:24 PM   #3
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,607

Rep: Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread

Tags
commit, dhcp, dhcp server, dhcpd, isc



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 the exact meaning of "On Commit" in ISC DHCP server configuration? Elon20 Linux - Server 1 06-15-2021 10:56 AM
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
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 - Networking

All times are GMT -5. The time now is 08:35 PM.

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