ISC dhcpd lease analysis and reporting

This is dhcpd-pools ISC dhcp shared network and pool range usage analysis. Purpose of command is to count usage ratio of each IP range and shared network pool which ISC dhcpd is in control of. The command has no native monitoring capability, for instance the tool will not talk nagios protocol. To accomodiate this need the csv output format is meant to be parsed by some organization specific script etc. Users of the command are most likely ISPs and other organizations that have large IP space.

Program is written C. Design goal is to get analysis done quickly when there is lots of data. I have tested that analysis takes less than three seconds with data containing about 100 thousand leases. I assume that the program will scale quite well up to several million addresses. Sample output and timing was done with old PC (Pentium III, 1 Ghz & 512 ram).


prompt> time ./dhcpd-pools -c ~/testdata/dhcpd.conf -l ~/testdata/dhcpd.leases  -o ~/sampleoutput.txt

real    0m2.460s
user    0m2.204s
sys     0m0.148s

prompt> cat ~/sampleoutput.txt

Where I can get dhcpd-pools?

Download package release dhcpd pools or clone from git

git clone git://dhcpd-pools.git.sourceforge.net/gitroot/dhcpd-pools/dhcpd-pools
Project page in SourceForge.

Manual page

The dhcpd-pools manual page.

Reference information

The program was written because DHCPStatus, DHCP Usage Statistics, reportdhcp.pl, lease_analyzer and dhcpd-snmp where too slow to handle huge number of leases. There is also difference in printed details. The dhcpd-pools does not print as much information as some other tools.

Notice that this utility is not the same as dhcpd-pool that is maintained by Trond Hasle Amundsen.

Just for laugh; obsolete awk proof of concept (version 1.4) dhcpd-pools.awk

Where to send questions, bug reports, code contributions...

To original author, who is also current maintainer:
Sami Kerola <kerolasa@iki.fi>.