<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 22, 2018 at 9:17 AM, Bill Shirley <span dir="ltr"><<a href="mailto:bill@c3po.polymerindustries.biz" target="_blank">bill@c3po.polymerindustries.biz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    I use:<br>
    <font color="#993300"><tt>on commit {</tt><tt><br>
      </tt><tt>  log (info, concat (</tt><tt><br>
      </tt><tt>  ...</tt><tt><br>
      </tt><tt>    ,"  LeaseTime:", pick-first-value(binary-to-<wbr>ascii(10,
        32, "", encode-int(lease-time, 32)), "(none)")</tt><span class="HOEnZb"><font color="#888888"><tt><br>
      </tt></font></span></font><span class="HOEnZb"><font color="#888888"><br>
    Bill</font></span><div><div class="h5"><br>
    <br>
    <div class="m_8776801192257403565moz-cite-prefix">On 1/22/2018 6:14 AM, <a class="m_8776801192257403565moz-txt-link-abbreviated" href="mailto:iftech@skynet.be" target="_blank">iftech@skynet.be</a>
      wrote:<br>
    </div>
    <blockquote type="cite">
      <pre>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
</pre></blockquote></div></div></div></blockquote><div><br></div><div>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.</div><div><br></div><div>-- </div><div>Bob Harold</div><div><br></div></div><br></div></div>