Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Once dhcpd (IPv4) is started, is there any way to check its internal pool status? e.g how many addresses are available?

I checked man(8) dhcpd, there's no signals/files available for that info.

share|improve this question
up vote 6 down vote accepted

On Ubuntu there is the file /var/lib/dhcp/dhcpd.leases, but it is rather verbose and you probably need a little script if you want more high level statistics. I am unaware of existing tools to do this.

There is a separate man page for this file man dhcpd.leases describing the database format.

share|improve this answer
Thanks for the filename , on arch linux I find it was located at /var/state/dhcp/dhcpd.leases – warl0ck May 27 '12 at 7:57
On X random linux distro, the location of the lease file is probably defined in the dhcpd.conf file. It might possibly use the compiled-in default though. The config file usually lives under /etc (although perhaps in a subdirectory; red hat puts it in /etc/dhcp/dhcpd.conf). – Dan Pritts Jul 9 '13 at 16:12
@DanPritts The parameter is called lease-file-name in dhcpd.conf IIRC. – jippie Jul 9 '13 at 17:37

Checking status of leases is easiest with analysis tool.


share|improve this answer

Here is a good command to show dhcp leases in nice format.

Check it out: Command to list assigned dhcp addresses

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.