log statement: How to log offered Lease Time?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

log statement: How to log offered Lease Time?

iftech
Hello,
 
I am trying to log the Leasetim provide in the OFFER or ACK basically by using for instance 
log (info, concat ("  test1:", pick-first-value(binary-to-ascii(10,32,"", option dhcp-lease-time), "(none)")));
 
but without success.
It looks like we cannot log info from an OFFER or an ACK ?
When using this
log ( info, concat( "MSGTYPE", binary-to-ascii (16,8,"^", option dhcp-message-type)));
I only see MSGTYPE1 or MSGTYPE3   never 2 and 4
 
is it possible to log info from an OFFER or an ACK ?
 
THANKS

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users