logging the lease time *sent* to clients in an "on commit" block
Niall.oReilly at ucd.ie
Mon May 21 07:58:51 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
On 18 May 2007, at 16:44, Phil Mayers wrote:
> What syntax can I use to get the ACTUAL IP address lease time (option
> 51) the server sends to the client? We have a need to do detailed
> logging of leases handed out including the lease time.
Why use an "on commit" action to duplicate what dhcpd is already
writing to the leases file?
Parsing the leases file "offline" at regular intervals can't be
much more difficult than doing the same with your logs, and avoids
extra processing during allocation or renewal of each lease.
University College Dublin IT Services
PGP key ID: AE995ED9 (see www.pgp.net)
Fingerprint: 23DC C6DE 8874 2432 2BE0 3905 7987 E48D AE99 5ED9
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
-----END PGP SIGNATURE-----
More information about the dhcp-users