How to get list or count of unleased ips from dhcpd3?
Is there any way to know how many IPs are available (or have been leased to clients) on an ISC dhcp server?
I'm looking at the dhcpd.leases file, but it is just a log file... I think... Thanks a lot! |
Kind of a hack!
This is kind of a hack, but it should work (presuming your not blocking ICMP pings)
Code:
list=$( grep -e 'lease .* {' dhcpd.leases | cut -f2 -d' ') |
|
All times are GMT -5. The time now is 05:10 PM. |