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

I'm wondering what is the correct way to count how many IPs are in use in my network according to the dhcpd process.

Is it just a matter of counting "binding state active" lines in dhcpd.leases file? Or it is something more complicated?

Thanks in advance.

share|improve this question

1 Answer 1

You could use ReportDHCP which parses your dhcp.leases file and provides you with a report that should give you what you are looking for.

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.