lease file parsing

Elliot Finley efinleywork at
Thu Sep 27 14:32:29 UTC 2007

On Thu, 27 Sep 2007 07:45:03 +0100, you wrote:

>Elliot Finley wrote:
>>  >>I'm writing a script to give me some stats on my leases.  I've found
>>>>that there are no leases marked abandoned but I've found that there
>>>>are IPs that aren't in the lease file at all (that are in my
>>>>configured ranges).  If an IP is not in the lease file, is it
>>  >>considered abandoned?
>>  >It may not have been assigned or used by any client yet.
>>I don't buy that because when I first fired up the server with an
>>empty lease file, all the IPs in my configured ranges were added with
>>a state of 'free'.
>>Anyone know the answer to this without guessing?
>If a lease is abandoned then it WILL appear marked as such. All the 
>installations I've ever done have NOT filled the leases file with all 
>configured addresses, they've only appeared once there's been a state 
>change on them - so I don't know what's going on there. The answers 
>you've been given so far are from people who don't have to guess !
>What version are you using ?
>Plain vanilla or got any patches applied ?
>Using Failover ?

I'm using V3.0.5
no patches that I know of, I'm using the FreeBSD port
yes, I'm using failover.

From the log of the primary server:

Sep 19 20:27:52 dns1 dhcpd: Abandoning IP address pinged
before offer

This IP doesn't appear anywhere in the lease file.  In fact, I don't
have *any* IPs marked as abandoned in the lease file, yet I've had
several abandoned in the log file.


More information about the dhcp-users mailing list