dhcpd-pools / other leses management tool

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

dhcpd-pools / other leses management tool

Leandro
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@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 MAC address Hostname Start End Online Lease Type
192.168.88.130  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
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: dhcpd-pools / other leses management tool

paranoid.schizophrenic.2
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 <[hidden email]> 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@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 MAC address Hostname Start End Online Lease Type
192.168.88.130  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
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users



--
 
 
paranoid sysadmin

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users

dhcp-lease-list.pl (10K) Download Attachment