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-boun...@lists.isc.org> on behalf of Darren Ankney <darren.ank...@gmail.com> Date: Thursday, September 28, 2023 at 4:42 PM To: kea-users@lists.isc.org <kea-users@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@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
-- ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users. Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users