Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.