[Kea-users] Kea lease4-get-all via kea-ctrl-agent
Peter Simm
pete at simmweb.co.uk
Tue Mar 3 08:24:09 UTC 2020
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> 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
> https://lists.isc.org/mailman/listinfo/kea-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20200303/1b183287/attachment.htm>
More information about the Kea-users
mailing list