Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Fleet Tools

These tools are about the set of routers flockmcp was told of, and about flockmcp itself.

list_daemons

Lists the routers: each one's name, endpoint, whether it can be reached, its flockd version, and whether that version is one this flockmcp talks to. An assistant starts here, as the names are what every other tool takes as daemon.

It takes no arguments, and asks every router as it is called.

{
    "daemons": [
        {
            "name": "r1",
            "endpoint": "http://192.0.2.1:50051",
            "allow_actions": true,
            "reachable": true,
            "version": "26.5.0",
            "git_commit": null,
            "version_match": true,
            "counters": {
                "connections": 1,
                "version_probes": 1,
                "requested_probes": 0,
                "version_mismatches": 0,
                "retries": 0,
                "unreachable": 0
            }
        }
    ]
}
  • allow_actions is whether flockmcp was started with --allow-actions for the router. The router has a setting of its own as well.
  • version_match is false for a router flockmcp will not talk to. It, version and git_commit are null where the router could not be asked.
  • A router that cannot be reached has reachable false and an error saying why.

The counters are kept from when flockmcp started:

CounterCounts
connectionsConnections made to the router. More than one means the connection was lost and made again
version_probesTimes the router was asked its version because it had to be: on first use, and after each new connection
requested_probesTimes it was asked its version though that was not due: by list_daemons, and before every reset
version_mismatchesTimes the version was not one this flockmcp talks to
retriesCalls asked again because the router restarted under them
unreachableTimes the router could not be reached

fleet_overview

The system overview of several routers in one call.

Argument
daemonsThe routers to ask. Leave out to ask every router

Each router has its overview, or an error saying why it could not be asked.

server_status

Reports on flockmcp or flockmcpd itself, not on a router: its version, whose major and minor version are those of the flockd release line it talks to.

{
    "server": "flockmcp",
    "version": "26.5.0",
    "build": "release",
    "refuses_version_mismatch": true
}

flockmcpd adds http, for its endpoint:

{
    "server": "flockmcpd",
    "version": "26.5.0",
    "build": "release",
    "refuses_version_mismatch": true,
    "http": {
        "bound_addr": "[::1]:8650",
        "allowed_hosts": ["localhost", "127.0.0.1", "::1"],
        "loopback_hosts_only": true,
        "refused_hosts": 0
    }
}
Field
bound_addrThe address and port it serves on
allowed_hostsThe Host names it answers to: allowed_hosts as configured, or the loopback names if that is not set
loopback_hosts_onlyallowed_hosts is not set, so only requests naming localhost, 127.0.0.1 or ::1 as their Host are answered. See Security
refused_hostsHow many requests it has refused, with 403, for a Host not in allowed_hosts