[Kea-users] Lease_cmds

Jeronimo jscmenezes at gmail.com
Wed May 19 16:18:43 UTC 2021


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20210519/7688bdd2/attachment.htm>


More information about the Kea-users mailing list