<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi dhcp users list.<br>
Im looking for some tool to list the provided leases and its status.<br>
So far I can list range usage per defined network using dhcpd-tools
as follows:<br>
<br>
[root@centos-dns1 etc]# dhcpd-pools -L11 -c /etc/dhcp/dhcpd.conf -l
/var/lib/dhcpd/dhcpd.leases<br>
Ranges:<br>
shared net name first ip last ip max
cur percent touch t+c t+c perc bu bu perc<br>
Relay1 192.168.88.2 - 192.168.88.126 125
0 0.000 40 40 32.000 50 40.000<br>
Relay2 192.168.88.130 - 192.168.88.254 125
0 0.000 1 1 0.800 0 0.000<br>
Relay1 192.168.89.2 - 192.168.89.126 125
0 0.000 66 66 52.800 59 47.200<br>
Relay2 192.168.89.130 - 192.168.89.254 125
0 0.000 1 1 0.800 2 1.600<br>
<br>
This is very usefull , but I wonder if is there other way to list
all leases and its status, for example pfsense provides the
following list:<br>
<table class="tabcont sortable" summary="dhcp leases" width="100%"
border="0" cellpadding="0" cellspacing="0">
<thead><tr>
<td class="listhdrr"><a
href="https://10.0.0.251/status_dhcp_leases.php#">P
address</a></td>
<td class="listhdrr"><a
href="https://10.0.0.251/status_dhcp_leases.php#">MAC
address</a></td>
<td class="listhdrr"><a
href="https://10.0.0.251/status_dhcp_leases.php#">Hostname</a></td>
<td class="listhdrr"><a
href="https://10.0.0.251/status_dhcp_leases.php#">Start</a></td>
<td class="listhdrr"><a
href="https://10.0.0.251/status_dhcp_leases.php#">End</a></td>
<td class="listhdrr"><a
href="https://10.0.0.251/status_dhcp_leases.php#">Online</a></td>
<td class="listhdrr"><a
href="https://10.0.0.251/status_dhcp_leases.php#">Lease
Type</a></td>
</tr>
</thead> <tbody>
<tr>
<td class="listlr">192.168.88.130 </td>
<td class="listr"><a
href="https://10.0.0.251/services_wol.php?if=opt2&mac=08:00:27:95:d9:62"
title="send Wake on LAN packet to this MAC address">08:00:27:95:d9:62</a> </td>
<td class="listr"> </td>
<td class="listr">2015/07/15 14:21:06 </td>
<td class="listr">2015/07/15 16:21:06 </td>
<td class="listr">offline </td>
<td class="listr">active </td>
</tr>
</tbody>
</table>
<br>
Thanks <br>
Leandro.<br>
<br>
</body>
</html>