lease file parsing
Carlos Vicente
cvicente at network-services.uoregon.edu
Fri Sep 28 16:21:09 UTC 2007
Elliot Finley wrote:
> Hello,
>
> 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?
>
> TIA
> Elliot
>
>
Not trying to answer your question, but I recently wrote a Perl module
for parsing dhcpd.leases files:
http://search.cpan.org/~cvicente/Text-DHCPLeases-v0.1/lib/Text/DHCPLeases.pm
It'd be nice to know if anyone else finds it useful.
Regards,
cv
More information about the dhcp-users
mailing list