Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 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

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

use at the command-line: Netsh dhcp server scope show clients

share|improve this answer
netsh: command not found – kasperd Mar 18 at 0:03
JGrave, this question is not about Windows DHCP. – Daniel Mar 18 at 0:29

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.