forget leases

Shawn Routhier sar at isc.org
Thu Jul 23 15:28:51 UTC 2015


> On Jul 23, 2015, at 7:59 AM, richard lucassen <mailinglists at lucassen.org> wrote:
> 
> On Thu, 23 Jul 2015 14:11:49 +0200
> Sten Carlsen <stenc at s-carlsen.dk> wrote:
> 
>> I wonder if "on commit" might be a help?
>>> 
>>> I was looking for an option
>>> "remove-expired-entries-from-leases-file" or something like that :)
> 
> Ok, thnx everyone, I'll write a nice shell script that parses the leases
> file and outputs a "cssh -l root <host> <host>" command. Unfortunately
> it is not possible using a "pool" config. No problem, it's stated
> clearly in RFC as pointed out.
> 
> R. 

You may want to look at the script in
DHCP/contrib/dhcp-lease-list.pl
it provides a perl script to do some things to the lease file.

It probably won’t be exactly what you want but it may provide a
starting point.

Shawn



More information about the dhcp-users mailing list