Hi Peter,
I used the command
 "*/usr/bin/echo '{"command":"lease4-get-all"}' | /usr/bin/socat -
UNIX:/opt/dhcp/dhcp/kea4-ctrl-socket | /usr/bin/jq*".
Sorry, I sent the wrong command in the mail.
The logs I am getting are

2023-06-15 10:24:21.508 DEBUG [kea-dhcp4.http/20092.140380769056512]
HTTP_SERVER_RESPONSE_SEND sending HTTP response HTTP/1.1 200 OK to
192.168.0.46
2023-06-15 10:24:21.508 DEBUG [kea-dhcp4.http/20092.140380769056512]
HTTP_SERVER_RESPONSE_SEND_DETAILS detailed information about response sent
to 192.168.0.46:
HTTP/1.1 200 OK
Content-Length: 195
Content-Type: application/json
Date: Thu, 15 Jun 2023 10:24:21 GMT
[ { "arguments": { "date-time": "Thu, 15 Jun 2023 10:24:21 GMT", "scopes":
[ "server-47" ], "state": "hot-standby", "unsent-update-count": 0 },
"result": 0, "text": "HA peer status returned." } ]
2023-06-15 10:24:22.069 ERROR [kea-dhcp4.commands/20092.140381017815232]
COMMAND_SOCKET_WRITE_FAIL Error while writing to command socket 35 : Broken
pipe
2023-06-15 10:24:22.069 DEBUG [kea-dhcp4.commands/20092.140381017815232]
COMMAND_SOCKET_CONNECTION_CLOSED Closed socket 35 for existing command
connection

Thank you.


On Thu, 15 Jun 2023 at 14:54, Peter Davies <[email protected]> wrote:

> Hi Shobhith
>   You echo the command to /opt/tcpwave/timsdhcp/kea4-ctrl-socket
>
> But according to your Kea configuration
> socket-name": "/opt/dhcp/dhcp/kea4-ctrl-socket"
>
> If this is a typo you may find extra info in your Kea log file
>
> Kind Regards Peter
> --
> 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
> [email protected]
> https://lists.isc.org/mailman/listinfo/kea-users
>
-- 
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
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to