parsing dhcpd.leases file

Christof Chen christof at chen.de
Wed Apr 15 18:25:52 UTC 2009


> Thanks for the reply. The problem with just parsing the active lease
> file periodically is that when the file rotates, I will lose some
> transactions, and I would like to avoid it if possible. For example:

> Obviously there's a balance here between code complexity, and need to
> save all data. We can minimize the risk by parsing the file more
> frequently...

How about reading the lease file just once for the past leases and
continously parsing the interesting events out from the syslog?

Best regards,
   Christof Chen




More information about the dhcp-users mailing list