[Kea-users] kea-leases4.csv decode

Frey, Rick E Rick.Frey at windstream.com
Fri Sep 29 00:27:29 UTC 2023


Per lease.cc<https://gitlab.isc.org/isc-projects/kea/-/blob/master/src/lib/dhcpsrv/lease.cc>, looks like there are 3 possible values for “state” column in kea-leases4.csv are 0, 1, or 2:

const uint32_t Lease::STATE_DEFAULT = 0x0;
const uint32_t Lease::STATE_DECLINED = 0x1;
const uint32_t Lease::STATE_EXPIRED_RECLAIMED = 0x2;




From: Kea-users <kea-users-bounces at lists.isc.org> on behalf of Darren Ankney <darren.ankney at gmail.com>
Date: Thursday, September 28, 2023 at 4:42 PM
To: kea-users at lists.isc.org <kea-users at lists.isc.org>
Subject: Re: [Kea-users] kea-leases4.csv decode
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.


Hi Chris,

This isn't a simple answer, I'm afraid, but perhaps this document can
help:  https://reports.kea.isc.org/dev_guide/d2/d08/structisc_1_1dhcp_1_1Lease4.html
 It isn't directly about the storage file but I believe it is about
the lease object that is stored in memfile which the lease log file
feeds on startup.

In particular you asked about:

fqdn_fwd - "If true, forward DNS update is performed for a lease."
fqdn_rev - " If true, forward DNS update is performed for a lease."
state - I'm not sure about this one though it seems that the answer
might be found spread throughout the document.

There may be a better document somewhere that specifically defines
this lease log file columns, but I could not find it.

Thank you,

Darren Ankney


On Wed, Sep 27, 2023 at 1:13 PM LIU Chris via Kea-users
<kea-users at lists.isc.org> wrote:
>
> Classified as: {OPEN}
>
>
> For kea lease file: /var/lib/kea/kea-leases4.csv
>
> The header like below:
>
> address,hwaddr,client_id,valid_lifetime,expire,subnet_id,fqdn_fwd,fqdn_rev,hostname,state,user_context
>
>
>
> for sure, most of them, it explain by themselves via  their name.
>
> But for fqdn_fwd/fqdn_rev/state, what’s the meaning  and how to decode them?
>
> For example,
>
> I got fqdn_fwd and fqdn_rev, the record value are 1
>
> for state, the record value is 0.
> With Best Regards,
> Chris LIU

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20230929/a5a70534/attachment.htm>


More information about the Kea-users mailing list