8.6 okv cluster link monitor Command
The okv cluster link monitor command monitors the
replication link.
Required Authorization
System Administrator role
Syntax
okv cluster link monitor
JSON Input File Template
{
"service" : {
"category" : "cluster,
"resource" : "link",
"action" : "monitor,
"options" : {
"nodeName" : "#VALUE"
}
}
}
Parameters
| Parameter | Required | Description |
|---|---|---|
--node-name |
Required |
Name of the cluster node. |
JSON Examples
- Generate JSON input for the
okv cluster link monitorcommand.okv cluster link monitor --generate-json-input
The generated input appears as follows:
{ "service" : { "category" : "cluster, "resource" : "link", "action" : "monitor, "options" : { "nodeName" : "#VALUE" } } } - Save the generated input to a file, for example,
link_monitor.json. - Run the
okv cluster link monitorcommand using the generated JSON file. For example:okv cluster link monitor --from-jsonOutput similar to the following appears:
{ "result" : "Success", "value" : { "linkStatus":[ { "nodeID":"1", "nodeName:"okv080027ef30b1", "heartbeatLagInSeconds":"82.95", "linkState":"Up", "replicationLagInSeconds":"6" }, { "nodeID":"2", "nodeName":"node2", "heartbeatLagInSeconds":"40.55", "linkState":"Up", "replicationLagInSeconds":"5" } ], "nodeID":"3", "nodeName":"node3" } } }
Parent topic: Cluster Monitoring Commands