connection#
dpsctl check connection Usage Guide#
Perform BMC connection check on configured nodes.
Usage#
dpsctl check connection --topology <topology-name>
Prerequisite in DPS 0.9#
Activate a newly imported topology through Managing Topologies before you check its BMC connections. The check reaches each node through its assigned DPS Agent, and activation, not import, creates that routing. Confirm that the topology appears in dpsctl topology list --active before you run the check.
Without routing from a prior activation, a scoped check can return INVALID_OPERATION with no agent configuration available.
Flags#
Includes global dpsctl options.
--topology string (optional) topology name. If provided without --nodes, all nodes in that topology are checked.
--nodes string [ --nodes string ] (optional) comma separated names of nodes to perform check on. If provided, only these nodes are checked.
--help, -h show help
Behavior#
The dpsctl check connection command determines which nodes to ping based on the provided flags:
Node Selection Rules:#
If
--nodesis provided: Only the specified nodes are checked.If no
--nodesbut--topologyis provided: All nodes in the specified topology are checked.If neither
--nodesnor--topologyis provided: No BMCs are checked. The server returns an empty health response. Use an explicit scope to verify BMC connectivity.
Inactive Topologies#
The server does not require the topology to be active, but it can reach a node only through Agent routing that a successful activation created. DPS keeps that routing after deactivation until the next successful activation or a server restart. As a result, a check against an inactive topology can reach only nodes from the most recently activated topology. The check uses the Agent assignments and node settings from that activation. With --topology, checks of nodes outside that activation fail individually. With --nodes, naming any node outside that activation fails the whole request with INVALID_OPERATION. Enabling dps.agent.allowHandshakeFallback does not remove the need for a prior successful activation. Do not use such a check to confirm connectivity for a new topology.
Examples#
The examples assume my-topology is active and the named nodes belong to it.
Check all nodes in a specific topology#
$ dpsctl check connection --topology my-topology
{
"total_nodes": 4,
"success_nodes": 4,
"failure_nodes": []
}
Check specific nodes#
$ dpsctl check connection --nodes node002,node003
{
"total_nodes": 2,
"success_nodes": 2,
"failure_nodes": []
}
Check specific nodes (topology flag ignored when nodes are specified)#
$ dpsctl check connection --topology my-topology --nodes node002,node003
{
"total_nodes": 2,
"success_nodes": 2,
"failure_nodes": []
}
Check with connection failures#
$ dpsctl check connection --nodes node004
{
"total_nodes": 1,
"success_nodes": 0,
"failure_nodes": [
{
"node_name": "node004",
"error_msg": "BMC connection timeout"
}
]
}