Log lease time

Bill Shirley bill at c3po.polymerindustries.biz
Sat Dec 16 11:07:14 UTC 2017


Add these lines to your logging:
             ,"  ReqLease:", pick-first-value(binary-to-ascii(10,32,"", option dhcp-lease-time), "(none)")
             ,"  Lease:", pick-first-value(binary-to-ascii(10,32,"",encode-int(lease-time,32)), "(none)")
             ,"  Renewal:", pick-first-value(binary-to-ascii(10, 32, "", config-option dhcp-renewal-time), "(none)")
             ,"  Rebind:", pick-first-value(binary-to-ascii(10, 32, "", config-option dhcp-rebinding-time), "(none)")

Bill

On 12/15/2017 4:37 PM, Gregory Sloop wrote:
> Log lease time Is there a way to write into the logs the lease time offered/given for each lease?
>
> Why, you ask? I've got some clients that are getting very short leases, and I'd like to understand why.
> Knowing more detail about what clients are getting for leases would be, I think, helpful in figuring it out.
>
> I assume it's possible with some level of debug, but it would be helpful to know at what level I'll get this...if at all...
>
> TIA
> -Greg
>
>
>
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users

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


More information about the dhcp-users mailing list