On 22/03/2018 01:11, Tim Howe wrote:
> I'm troubleshooting some lease time problems, and I realize I have no
> idea how to tell what the current leases are.
> Do I have to parse the kea-leases6.csv file and compare with system
> unix time? Or is there some other mechanism provided that I haven't
> been able to find?
I presume you're using memfile as a backend and you want to inspect IPv6
leases? Lease file can be inspected, but it's essentially a journal, so
there usually are many entries for the same lease, one for every time
something happened with it (renewed, released, expired etc.). You could
reverse parse it (use the last line that mentions specific address).
Another way you may consider would be to start using a database. Then
you could inspect the database directly.