Log Statement: How to log offered Lease Time?

Bill Shirley bill at c3po.polymerindustries.biz
Mon Jan 22 14:17:29 UTC 2018


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
> _______________________________________________
> 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/20180122/6ac976ab/attachment.html>


More information about the dhcp-users mailing list