<div dir="ltr"><div dir="auto"><div><br></div><div dir="auto"><div class="gmail_extra" dir="auto"><div class="gmail_quote">On Jan 22, 2018 9:50 AM, "Bob Harold" <<a href="mailto:rharolde@umich.edu" target="_blank">rharolde@umich.edu</a>> wrote:<br type="attribution"><blockquote class="gmail-m_4372941585708058805quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><div class="gmail-m_4372941585708058805quoted-text">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.b<wbr>iz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div 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-asc<wbr>ii(10,
32, "", encode-int(lease-time, 32)), "(none)")</tt><span class="gmail-m_4372941585708058805m_4509262112351176197HOEnZb"><font color="#888888"><tt><br>
</tt></font></span></font><span class="gmail-m_4372941585708058805m_4509262112351176197HOEnZb"><font color="#888888"><br>
Bill</font></span><div><div class="gmail-m_4372941585708058805m_4509262112351176197h5"><br>
<br>
<div class="gmail-m_4372941585708058805m_4509262112351176197m_8776801192257403565moz-cite-prefix">On 1/22/2018 6:14 AM, <a class="gmail-m_4372941585708058805m_4509262112351176197m_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><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><font color="#888888"><div><br></div><div>-- </div><div>Bob Harold</div><div><br></div></font></div></div></div>
</blockquote></div><div>Someday I hope to try this solution:</div><div dir="auto"><br></div><div dir="auto"><a href="https://lists.isc.org/pipermail/dhcp-users/2007-May/003684.html" target="_blank">https://lists.isc.org/<wbr>pipermail/dhcp-users/2007-May/<wbr>003684.html</a><br></div><div><br></div><div>-- </div><div>Bob Harold</div><div><br></div></div></div></div>
</div>