[Kea-users] Migrate to Kea from non-ISC DHCP server ***EXTERNAL EMAIL***

Wlodek Wencel wlodek at isc.org
Thu Apr 13 15:47:46 UTC 2023


Couple simple leases files I took out from our automated testing are 
attached. Please be aware that in user context Kea can store quite 
extensive info in json structure (also attached).

Hope that will help

Wlodek Wencel


On 13/04/2023 16:42, Rachael Wilson wrote:
>
> Thank you, Darren!  I will give perfdhcp a try.
>
>
> --
> Rachael Wilson
> (509) 422-8374
>
> *From:* Kea-users <kea-users-bounces at lists.isc.org> *On Behalf Of 
> *Darren Ankney
> *Sent:* Thursday, April 13, 2023 3:27 AM
> *To:* kea-users at lists.isc.org
> *Subject:* Re: [Kea-users] Migrate to Kea from non-ISC DHCP server 
> ***EXTERNAL EMAIL***
>
> *EXTERNAL EMAIL: Please Think Before You Click!!*
>
> Hello Rachael,
>
> There probably isn't an example file anywhere in the documentation (I 
> looked also) or if there is, I just didn't find it.  I would suggest 
> setting up a test kea server with the memfile lease database 
> persisting to a file.  Then use perfdhcp to generate traffic thus 
> populating the file.  If you need specific options to appear in the 
> lease file, it is possible to use perfdhcp to generate most of them 
> (even if you have to create the hex yourself).
>
> Thank you,
>
> Darren Ankney
>
> On Wed, Apr 12, 2023 at 5:19 PM Rachael Wilson <RachaelW at okpud.org> wrote:
>
>     Hi, I would like to migrate a few thousand DHCP leases from a
>     non-ISC DHCP server to a memfile backed Kea instance.  Looking
>     through the docs, it seems it would be easier to populate the
>     lease file in /var/lib/kea/kea-leases4.csv rather than using
>     hooks.  However, in a fresh install the file only contains the
>     header row.  Is there an example file populated with rows I could
>     look at to properly format the data for import?  Didn’t see
>     anything in the docs, but might have missed it.
>
>     -- 
>
>     logo__250px.png
>
>     	
>
>     *Rachael Wilson *| Network Analyst
>     Public Utility District No. 1 Of Okanogan County
>     Office: (509) 422-8374 | RachaelW at okpud.org
>     1331 2nd Ave N., Okanogan, WA 98840 | P.O. Box 912, Okanogan, WA
>     98840
>
>     P.U.D. No. 1 of Okanogan County is an equal opportunity provider
>     and employer.  If you think that you have received this message in
>     error, please e-mail the sender at the above e-mail address.
>
>     -- 
>     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 at lists.isc.org
>     https://lists.isc.org/mailman/listinfo/kea-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20230413/f4aea7c3/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 37538 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20230413/f4aea7c3/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: leases6.csv
Type: text/csv
Size: 272 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20230413/f4aea7c3/attachment-0003.csv>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: leases4.csv
Type: text/csv
Size: 182 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20230413/f4aea7c3/attachment-0004.csv>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: leases_with_user_context.csv
Type: text/csv
Size: 1154 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20230413/f4aea7c3/attachment-0005.csv>


More information about the Kea-users mailing list