Hi Thanks, I'll try to keep this conversation OPEN 😉
I'm running HA setup and has kea-ctrl-agent on port 8001 on my primary server (10.123.97.212) and tried kea-shell : kea-shell --host 10.123.97.212 --port 8001 --service dhcp4 lease4-get-all but I'm just receiving a Connection Timeout after several minutes. Did the same using curl and got same reply packed in HTML code. curl -X POST -H "Content-Type: application/json" -d '{ "command": "lease4-get-all", "service": [ "dhcp4" ] }' http://10.123.97.212:8081 <I didn't bother pasting the HTML encoded reply> I've got approx. 80 leases so this shouldn't take much time. ./PerW > -----Original Message----- > From: Kea-users <kea-users-boun...@lists.isc.org> On Behalf Of Kevin P. > Fleming > Sent: tirsdag 6. juni 2023 13:32 > To: kea-users@lists.isc.org > Subject: Re: [Kea-users] How do I list current IPv4 leases? (INTERNAL) > > On Tue, Jun 6, 2023, at 07:28, Weisteen Per wrote: > > Hi > > I'm replying even though this was apparently an "INTERNAL" message :-) > > > > > Simple question, how do I get a list of all current leases when using > > memfile as database backend? > > Regardless of the backend, the 'lease_cmds' hook library is what you want: > > https://kea.readthedocs.io/en/kea-2.2.0/arm/hooks.html#lease-cmds-lease- > commands-for-easier-lease-management > -- > 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 -- 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