dhcpd.leases synchronization in DHCP failover

Bob Harold rharolde at umich.edu
Fri Dec 21 17:55:13 UTC 2018


On Fri, Dec 21, 2018 at 9:44 AM DUPALUT, Benjamin <benjamin.dupalut at esiee.fr>
wrote:

> Hello all,
>
> I want to monitor the percentage of use for some of my DHCP pools.
>
> I intended to write a script who would have parsed dhcpd.leases but i
> found out that my failover dhcp servers doesn't have the same active leases
> in their dhcpd.leases files. Is this the expected behavior or are my
> servers wrongly configured ?
>
> I cannot find clear documentations about this topic.
>
> Thanks in advance for your help.
>
> Cordialement,
>
> *Benjamin Dupalut*
> Ingénieur système et réseau
> Service Informatique, Télécommunications, Audiovisuel et Reprographie
> (SITAR)
> ESIEE Paris
> 2 bd Blaise Pascal - 93162 Noisy-le-Grand Cedex
> T : +33 1 45 92 66 17
> benjamin.dupalut at esiee.fr
> www.esiee.fr / www.cci-paris-idf.fr
>
>
New leases are added to the end of the lease file.  Only occasionally is
the whole file rewritten.  That is for performance reasons.  The latest
lease info should match between the primary and failover, older info and
the order of the entries will not be the same.

But I would recommend using SNMP:
https://www.isc.org/free-tools-and-resources-for-isc-dhcp/
ISC DHCP SNMP pool tracker
dhcpd-snmp is an extension for the Net-SNMP agent and the ISC DHCP server.
It allows you to monitor and track the address usage of your dynamic IP
address pools through SNMP. On Github.

-- 
Bob Harold
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20181221/021be640/attachment.html>


More information about the dhcp-users mailing list