{
    "access": "read",
    "avail": "1.7.3",
    "brief": [
        "This command returns server's runtime information.",
        "It takes no arguments."
    ],
    "cmd-syntax": [
        "{",
        "    \"command\": \"status-get\"",
        "}"
    ],
    "description": "See <xref linkend=\"command-status-get\"/>",
    "name": "status-get",
    "resp-comment": [
        "If the libdhcp_ha (High Availability) hooks library is loaded by the DHCP server receiving this command the response also includes the HA specific status information of the server receiving the command and its partner's status."
    ],
    "resp-syntax": [
        "{",
        "    \"result\": <integer>,",
        "    \"arguments\": {",
        "        \"pid\": <integer>,",
        "        \"uptime\": <uptime in seconds>,",
        "        \"reload\": <time since reload in seconds>,",
        "        \"high-availability\": [",
        "            {",
        "                \"ha-mode\": <HA mode configured for this relationship>,",
        "                \"ha-servers\": {",
        "                    \"local\": {",
        "                        \"role\": <role of this server as in the configuration file>,",
        "                        \"scopes\": <list of scope names served by this server>,",
        "                        \"state\": <HA state name of the server receiving the command>",
        "                    },",
        "                    \"remote\": {",
        "                        \"age\": <the age of the remote status in seconds>,",
        "                        \"in-touch\": <indicates if this server communicated with remote>,",
        "                        \"last-scopes\": <list of scopes served by partner>,",
        "                        \"last-state\": <HA state name of the partner>,",
        "                        \"role\": <partner role>",
        "                    }",
        "                }",
        "            }",
        "        ],",
        "        \"multi-threading-enabled\": true,",
        "        \"thread-pool-size\": 4,",
        "        \"packet-queue-size\": 64,",
        "        \"packet-queue-statistics\": [ 1.2, 2.3, 3.4 ],",
        "        \"sockets\": {",
        "            \"errors\": [ <error received during the last attempt to open all sockets> ],",
        "            \"status\": <ready, retrying, or failed>",
        "        }",
        "    }",
        "}"
    ],

    "support": [
        "kea-dhcp4",
        "kea-dhcp6",
        "kea-dhcp-ddns",
        "kea-ctrl-agent"
    ]
}
