This is a tool that retrieves and displays the lease data kept in the lease file on a Linux DHCP server. The utility was designed to help administrators and testing team to audit or monitor DHCP leases information. Various feature like filtering of the records based on start/end lease date or binding state is offered. Also an option has provided to save the lease information into a more common readable format.
*For the this utility to work JAVA should be present on the machine.
How to Use the file:
To compile the file from a terminal type:
javac DHCP_Audit.java <enter>
To run the tool type:
java DHCP_Audit -f "path/fileName" <enter>
Where path/fileName is the name of lease data file that exists on a Linux DHCP Server.
java DHCP_Audit -f /var/lib/dhcp/db/dhcp.leases <enter>
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.