Skip to content

CLI commands GetClientState, GetAllClientsState

Choose a tag to compare

@pjanec pjanec released this 14 Oct 13:48
· 116 commits to 3.1 since this release

GetClientState returns the status of given client/machine. Returns empty string if client does not exist.
GetAllClientsState gathers the status of all clients/machines known to the Dirigent.

format of the response:
CLIENT:<ClientName>:<IsConnected>:<ReportedSecondsAgo>:<IP address>

req:
GetClientState m1
resp:
CLIENT:m1:1:0.4:127.0.0.1

req:
GetAllClientsState
resp:
CLIENT:m1:1:0.4:192.168.1.1
CLIENT:m2:0:0.2:192.168.1.2
END