Hi,
When I am trying to fetch active leases, even though my lease file is
empty, I am getting leases when I execute

* /usr/bin/echo '{"command":"lease4-get-all"}' | /usr/bin/socat -
UNIX:/opt/tcpwave/timsdhcp/kea4-ctrl-socket | /usr/bin/jq*Below mentioned
is my lease file
cat /opt/test/dhcp/db/dhcp4.leases
address,hwaddr,client_id,valid_lifetime,expire,subnet_id,fqdn_fwd,fqdn_rev,hostname,state,user_context
When I execute
*lease4-get-all command, I get leases*{
  "arguments": {
    "leases": [
      {
        "client-id": "01:2f:ff:ff:00:00:01",
        "cltt": 1686215869,
        "fqdn-fwd": false,
        "fqdn-rev": false,
        "hostname": "dhcp-client-000001",
        "hw-address": "2f:ff:ff:00:00:01",
        "ip-address": "3.0.0.2",
        "state": 0,
        "subnet-id": 818110,
        "valid-lft": 86400
      } ]
  },
  "result": 0,
  "text": "10 IPv4 lease(s) found."
}
Where am I getting this from?
Thanks in advance
Shobhith
-- 
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

Reply via email to