[Kea-users] Kea lease4-get-all via kea-ctrl-agent
Marcin Siodelski
marcin at isc.org
Tue Mar 3 08:48:40 UTC 2020
Peter,
Apparently you configured your Kea Control Agent rather than DHCP server
to load the hooks libraries. Can you please confirm?
The lease-cmds hooks library must be loaded from within the Kea DHCP
server configuration, i.e. kea-dhcp4.conf rather than
kea-ctrl-agent.conf. The "service" parameter must be present in all
commands sent to the DHCP servers.
Marcin Siodelski
Sr. Software Engineer
ISC
On 03/03/2020 09:24, Peter Simm wrote:
> Hello,
>
> Thanks for the suggestion, unfortunately it doesn't seem to work either :(
>
> curl -X POST -H "Content-Type: application/json" -d '{ "command":
> "lease4-get-all", "service": [ "dhcp4" ]}' http://127.0.0.1:8080 | jq
> % Total % Received % Xferd Average Speed Time Time Time
> Current
> Dload Upload Total Spent Left
> Speed
> 100 122 100 68 100 54 53042 42121 --:--:-- --:--:-- --:--:--
> 68000
> [
> {
> "result": 1,
> "text": "no current lease manager is available"
> }
> ]
>
> 2020-03-03 09:23:09.258 ERROR [kea-ctrl-agent.callouts/26800]
> HOOKS_CALLOUT_ERROR error returned by callout on hook 1 registered by
> library with index
> $lease4_get_all (callout address 0x7f172e322b40) (callout duration 0.086 ms)
>
> On Tue, 3 Mar 2020 at 08:16, TroYy <modo555 at gmail.com
> <mailto:modo555 at gmail.com>> wrote:
>
> It seems that you must include "service" which you want to be asked
>
> So
>
> curl -X POST -H "Content-Type: application/json" -d '{ "command":
> "lease4-get-all", "service": [ "dhcp4" ] }' http://127.0.0.1:8080 | jq
>
> should work
>
>
>
> --
> Sent from: http://kea-users.7364.n8.nabble.com/
> _______________________________________________
> Kea-users mailing list
> Kea-users at lists.isc.org <mailto:Kea-users at lists.isc.org>
> 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
>
More information about the Kea-users
mailing list