Log Statement: How to log offered Lease Time?

Bob Harold rharolde at umich.edu
Mon Jan 22 14:55:02 UTC 2018


On Jan 22, 2018 9:50 AM, "Bob Harold" <rharolde at umich.edu> wrote:


On Mon, Jan 22, 2018 at 9:17 AM, Bill Shirley <bill at c3po.polymerindustries.b
iz> wrote:

> I use:
> on commit {
>   log (info, concat (
>   ...
>     ,"  LeaseTime:", pick-first-value(binary-to-ascii(10, 32, "",
> encode-int(lease-time, 32)), "(none)")
>
> Bill
>
>
> On 1/22/2018 6:14 AM, iftech at skynet.be wrote:
>
> Hello,
>
> I can see Discover,Offer,Request,Ack in my log
> What i am referring to is the detailed logging options that you can collect by using log statement
> ex: log ( info, concat( "MSGTYPE", binary-to-ascii (16,8,"^", option dhcp-message-type)));
>
> those seems only to work on Incoming DHCP messages (Discover, Request)
> but not on Outgoing Offer and Ack
>
> thanks
> yves
>
>
In my experience that logs the "normal" lease time, not the actual lease
time, which can be lower due to failover MCLT settings or other
situations.  There is no way to get the actual lease time that is being
sent, as far as I can tell.  I would love for that to be fixed.

-- 
Bob Harold

Someday I hope to try this solution:

https://lists.isc.org/pipermail/dhcp-users/2007-May/003684.html

-- 
Bob Harold
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20180122/bce7dc55/attachment.html>


More information about the dhcp-users mailing list