DHCP Commit Reporting
We have a rather large DHCP-Setup here consisting of several subnets, ranges, groups and such. Additionally we’re using static assignments here with hosts not within any configured range.
Yeah, I know, that’s not DHCP in its pure form, get over it.
However, as we redesigned the complete setup with a fresh new and optimized configuration file we’d like to have a nice overview on which hosts have which leases.
As ISC DHCP currently seems to be unable to add appropriate entries to its leases-database for statically assigned hosts, this was kind of a problem.
However, I found something on the internet enabling DHCP to add custom log lines whenever it gives out („commits“) an IP. I then wrote a quick log parsing utility, that generates a nice textual representation of the commit-process.
Being a DokuWiki-fanboy I made the report DokuWiki-compatible and even wrapped up a small script utilizing DokuWiki’s XMLRPC-API to upload the page.
However, if you need a format other than DokuWiki you’re welcome to fork the project and add the additional code.
Grab the package at its [[https://github.com/dploeger/dhcp-commit-report|GitHub repository]]