Keeping Track of Static DHCP Leases

Bill Shirley Bill at Henagar.PolymerIndustries.biz
Sun Jun 8 02:25:55 UTC 2014


On 6/4/2014 6:58 PM, Glenn Satchell wrote:
> Static leases don't work that way. A static address is only for a known
> single host so the code short circuits a lot of the lease management
> stuff. Basically it just hands out a new lease for the given mac each time
> it asks. So it never deletes a lease and doesn't need to record it in the
> leases file or in memory.
>
> Syslog will show the discover, offer, request and accept messages.
>
> regards,
> -glenn
>
> On Thu, June 5, 2014 4:11 am, Martin G. McCormick wrote:
>> 	Is there any omshell or other command that will cause
>> dhcpd to output all static leases it holds?
>> We are using
>> Internet Systems Consortium DHCP Server 4.1-ESV-R7.
>> omshell's ability to query for an individual lease or host, in
>> the case of static bootP-style entries works well, but being
>> able to see what the dhcp server knows as it's static entry
>> table would be very useful. For that matter, any log line
>> stating that static host xyz.new.system.abc.edu MAC_ADDRESS IP_ADDRESS
>> was deleted or added would also be helpful.
>>
>> Thank you.
>>
>> Martin McCormick
>> _______________________________________________
>> dhcp-users mailing list
>> dhcp-users at lists.isc.org
>> https://lists.isc.org/mailman/listinfo/dhcp-users
>>
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
Perhaps some modification of this could put the info you need in the log file:
# ------------------------------------------------------------------------------
if static { set is-static = " --> STATIC"; } else { set is-static = "";}
log (
         info,
         concat (
                 "VendorClassId: ", pick-first-value(option vendor-class-identifier, "Not available")
                 ," UserClass: ", pick-first-value(option user-class, "Not available")
                 , is-static
         )
);
# ------------------------------------------------------------------------------

Bill

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20140607/c9a66878/attachment.html>


More information about the dhcp-users mailing list