[Kea-users] Lease_cmds
Thomas Markwalder
tmark at isc.org
Sat May 22 13:44:12 UTC 2021
Each library must be enclosed in braces as follows:
"hooks-libraries": [
{
"library": "/usr/local/lib/kea/hooks/libdhcp_mysql_cb.so"
},
{
"library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so"
},
{
"library": "/usr/local/lib/kea/hooks/libdhcp_stat_cmds.so"
}}
],
On 5/21/21 12:22 PM, Jeronimo wrote:
> :õ(
>
>
>
> Em qua., 19 de mai. de 2021 às 13:18, Jeronimo <jscmenezes at gmail.com
> <mailto:jscmenezes at gmail.com>> escreveu:
>
> Hi,
>
> I trying to use lease6-get-all but Kea Ctrl Agent don't enable
> this command.
>
> In my kea-dhcp6.conf I setted up hook-libraries:
> "hooks-libraries": [
> {
> "library": "/usr/local/lib/kea/hooks/libdhcp_mysql_cb.so",
> "library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so",
> "library": "/usr/local/lib/kea/hooks/libdhcp_stat_cmds.so"
> }
> ],
>
> But lease6-get-all don't appears in list-command for dhcp6 service:
> $ curl -X POST http://127.0.0.1:8080/ -H "Content-Type:
> application/json" -d '{ "command": "list-commands", "service": [
> "dhcp6" ]}' | jq
> % Total % Received % Xferd Average Speed Time Time
> Time Current
> Dload Upload Total Spent
> Left Speed
> 100 628 100 575 100 53 187k 17666 --:--:-- --:--:--
> --:--:-- 204k
> [
> {
> "arguments": [
> "build-report",
> "config-backend-pull",
> "config-get",
> "config-reload",
> "config-set",
> "config-test",
> "config-write",
> "dhcp-disable",
> "dhcp-enable",
> "leases-reclaim",
> "libreload",
> "list-commands",
> "server-tag-get",
> "shutdown",
> "stat-lease4-get",
> "stat-lease6-get",
> "statistic-get",
> "statistic-get-all",
> "statistic-remove",
> "statistic-remove-all",
> "statistic-reset",
> "statistic-reset-all",
> "statistic-sample-age-set",
> "statistic-sample-age-set-all",
> "statistic-sample-count-set",
> "statistic-sample-count-set-all",
> "status-get",
> "version-get"
> ],
> "result": 0
> }
> ]
>
> Is the lease6-get-all a paid command?
>
> Thanks in advance!
>
> Jeronimo
>
>
>
>
>
> _______________________________________________
> 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/20210522/febd5fc9/attachment.htm>
More information about the Kea-users
mailing list