Feature #1048
Display current lease status
Status: | CLOSED | Start date: | 04/17/2012 | |
---|---|---|---|---|
Priority: | Low | Due date: | 11/20/2013 | |
Assignee: | - | % Done: | 100% | |
Category: | nethserver-dnsmasq | |||
Target version: | v6.5-beta3 | |||
Resolution: | NEEDINFO: | No |
Description
The dhcp-script
option in dnsmasq.conf allows specifying a script that receives DHCP events
Whenever a new DHCP lease is created, or an old one destroyed, the executable
specified by this option is run. The arguments to the process are "add", "old"
or "del", the MAC address of the host, the IP address, and the hostname, if
known. "add" means a lease has been created, "del" means it has been
destroyed, "old" is a notification of an existing lease when dnsmasq starts or
a change to MAC address or hostname of an existing lease (also, lease length
or expiry and client-id, if leasefile-ro is set)
Related issues
Associated revisions
dnsmasq.conf: added dnsmasq-leasestatus script to track leases add/del/old states. Refs #1048 - Display current lease status
Removed /usr/libexec/nethserver/dnsmasq-leasestatus helper. Refs #1048
History
#1 Updated by Davide Principi over 9 years ago
- Status changed from NEW to ON_DEV
- % Done changed from 0 to 20
#2 Updated by Davide Principi over 9 years ago
- Target version changed from DEV4 to DEV103
#3 Updated by Davide Principi over 9 years ago
- Status changed from ON_DEV to 4
This feature needs feedback/discussion
#4 Updated by Giacomo Sanchietti over 9 years ago
- Priority changed from Normal to Low
- Target version deleted (
DEV103)
Lease status must be displayed both in DHCP reservation tab and in DHCP ip range configuration UI module
#5 Updated by Davide Principi almost 9 years ago
- Target version set to NSA1
#6 Updated by Davide Principi over 8 years ago
- Estimated time set to 8.00
#7 Updated by Davide Principi over 8 years ago
- Target version changed from NSA1 to ~FUTURE
#8 Updated by Davide Principi over 8 years ago
- Project changed from 9 to NethServer 6
#9 Updated by Davide Principi about 8 years ago
- Status changed from 4 to NEW
- % Done changed from 20 to 0
- NEEDINFO set to No
#10 Updated by Davide Principi about 8 years ago
- Assignee deleted (
Davide Principi)
#11 Updated by Filippo Carletti almost 8 years ago
- Target version changed from ~FUTURE to v6.5-beta3
#12 Updated by Giacomo Sanchietti almost 8 years ago
- Status changed from NEW to TRIAGED
- % Done changed from 0 to 20
Implementation should be simplified by parsing the /var/lib/dnsmasq/dnsmasq.leases file
.
File format
From Dnsmasq-discuss mailing-list. Each line is a record with a space character as field separator.
1383292867 10:68:3f:79:xx:xx 192.168.x.xx hostname 01:10:68:3f:79:xx:xx
Fields:
- Expiration time
- MAC address
- IP Address
- Hostname (optional, can be *)
- Client id (optional, can be *)
#13 Updated by Davide Principi over 7 years ago
- Assignee set to Davide Principi
#14 Updated by Davide Principi over 7 years ago
- Due date set to 11/20/2013
- Status changed from TRIAGED to ON_DEV
- % Done changed from 20 to 30
#15 Updated by Davide Principi over 7 years ago
- Status changed from ON_DEV to MODIFIED
- Assignee deleted (
Davide Principi) - % Done changed from 30 to 60
Test case
An expired lease must be listed in the table view with a small double-arrow icon on the first column.
#16 Updated by Davide Principi over 7 years ago
- Status changed from MODIFIED to ON_QA
- % Done changed from 60 to 70
#17 Updated by Giacomo Sanchietti over 7 years ago
- Assignee set to Giacomo Sanchietti
#18 Updated by Giacomo Sanchietti over 7 years ago
- Status changed from ON_QA to VERIFIED
- Assignee deleted (
Giacomo Sanchietti) - % Done changed from 70 to 90
Lease status correctly displayed in web UI.
Marking as VERIFIED.
#19 Updated by Davide Principi over 7 years ago
- Status changed from VERIFIED to CLOSED
- % Done changed from 90 to 100
In nethserver-updates:
nethserver-samba-1.4.0-1.ns6.noarch.rpm
nethserver-directory-1.3.0-1.ns6.noarch.rpm
nethserver-dnsmasq-1.1.0-1.ns6.noarch.rpm
nethserver-shorewall-1.0.3-1.ns6.noarch.rpm
nethserver-mail-server-1.5.0-1.ns6.noarch.rpm
nethserver-mail-filter-1.1.4-1.ns6.noarch.rpm
nethserver-nethgui-1.3.0-1.ns6.noarch.rpm
nethserver-base-1.5.0-1.ns6.noarch.rpm
nethserver-lib-1.4.0-1.ns6.noarch.rpm
nethserver-httpd-admin-1.1.0-1.ns6.noarch.rpm
nethserver-yum-1.2.0-1.ns6.noarch.rpm
nethserver-ntopng-1.1.0-1.ns6.noarch.rpm