dhcpd-pools / other leses management tool

paranoid.schizophrenic.2 paranoid.schizophrenic.2 at gmail.com
Wed Jul 15 19:50:35 UTC 2015


We use a script (based on the dhcp-lease-list.pl script in /contrib) to do
what you describe from pfsense. We've added options (including sorting,
formatting, etc.) to tailor it specifically for our use. It does not
include a couple of the columns in your example, but those would be trivial
to add.

NOTE: this script only "understands" IPv4. It has never been tested with
IPv6. Most everything should work, but we don't currently have even a test
environment to try it. Hopefully later this year there will be cycle time
to experiment with that.

YMMV
The Paranoid Schizophrenic

On Wed, Jul 15, 2015 at 12:28 PM, Leandro <ingrogger at gmail.com> wrote:

>  Hi dhcp users list.
> Im looking for some tool to list the provided leases and its status.
> So far I can list range usage per defined network using dhcpd-tools as
> follows:
>
> [root at centos-dns1 etc]# dhcpd-pools -L11 -c /etc/dhcp/dhcpd.conf -l
> /var/lib/dhcpd/dhcpd.leases
> Ranges:
> shared net name     first ip           last ip            max   cur
> percent  touch   t+c  t+c perc     bu  bu perc
> Relay1              192.168.88.2     - 192.168.88.126     125     0
> 0.000     40    40    32.000     50   40.000
> Relay2              192.168.88.130   - 192.168.88.254     125     0
> 0.000      1     1     0.800      0    0.000
> Relay1              192.168.89.2     - 192.168.89.126     125     0
> 0.000     66    66    52.800     59   47.200
> Relay2              192.168.89.130   - 192.168.89.254     125     0
> 0.000      1     1     0.800      2    1.600
>
> 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:
>  P address <https://10.0.0.251/status_dhcp_leases.php#> MAC address
> <https://10.0.0.251/status_dhcp_leases.php#> Hostname
> <https://10.0.0.251/status_dhcp_leases.php#> Start
> <https://10.0.0.251/status_dhcp_leases.php#> End
> <https://10.0.0.251/status_dhcp_leases.php#> Online
> <https://10.0.0.251/status_dhcp_leases.php#> Lease Type
> <https://10.0.0.251/status_dhcp_leases.php#>   192.168.88.130
> 08:00:27:95:d9:62
> <https://10.0.0.251/services_wol.php?if=opt2&mac=08:00:27:95:d9:62>    2015/07/15
> 14:21:06  2015/07/15 16:21:06  offline  active
> Thanks
> Leandro.
>
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>



-- 


paranoid sysadmin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20150715/1418cfdc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dhcp-lease-list.pl
Type: application/octet-stream
Size: 8118 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20150715/1418cfdc/attachment.obj>


More information about the dhcp-users mailing list