logging the lease time *sent* to clients in an "on commit" block

Glenn Satchell Glenn.Satchell at uniq.com.au
Mon May 21 14:20:26 UTC 2007


>Date: Mon, 21 May 2007 14:44:17 +0100
>From: Phil Mayers <p.mayers at imperial.ac.uk>
>
>>>
>>> Does anyone know if it's possible or not?
>> 
>Apologies if I was unclear: I'm aware it's the right option. What I'm 
>having trouble is logging the value of the option from the ACK, as 
>opposed to the value of the option from the REQUEST (which is often 
>unset anyway).

How about this, which will only log the info for DHCPACK packets?
dhcp-options man page shows values for dhcp-message-type.

if option dhcp-message-type = 5 {
  log (whatever, concat( ... , option dhcp-lease-time, ... ));
}

regards,
-glenn


More information about the dhcp-users mailing list