Server Fault is a question and answer site for system and network administrators. 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

I'm a little bit new to dhcpd. I'm trying to figure out how many leases we have available on our network.

The /var/lib/dhcpd/dhcpd.leases file appears to show almost a history of leases and some of the current leases. Not sure if that really helps me or not...

I figured there might be a command or something I'm unaware of that can tell me how many leases are left.

share|improve this question

Basically, you need to parse the dhcpd.leases and dhcpd.conf files to get a picture of the metes and bounds of the available IP ranges and the state of each IP address within the address space.

The DHCPStatus project might do what you need.

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.