lease file parsing

Allie Hopkins allie at lsu.edu
Fri Sep 28 18:14:34 UTC 2007


I wonder if you could use the shared-subnet statement with only one
subnet?  This way you could specify a name for the subnet, which is used
in the logs.  I've never tried this configuration, so I have no clue if
this is possible.  All mine contain two subnets, but it may be worth a
shot.

Allie
On Fri, 2007-09-28 at 13:17 -0400, Randall C Grimshaw wrote:
> The feature that I would like to request is the ability to name pools so
> that they are consistently identifiable in the lease-balance log
> messages.
> 
> In this way a syslog scanner can monitor for low pool situations,
> provide time based statistics, etc.
> 
> <><Randy
> 
> -----Original Message-----
> From: dhcp-users-bounce at isc.org [mailto:dhcp-users-bounce at isc.org] On
> Behalf Of Carlos Vicente
> Sent: Friday, September 28, 2007 12:21 PM
> To: dhcp-users at isc.org
> Subject: Re: lease file parsing
> 
> 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/DHCPLease
> s.pm
> 
> It'd be nice to know if anyone else finds it useful.
> 
> Regards,
> 
> cv
> 
> 


More information about the dhcp-users mailing list