8 Cluster Monitoring Commands
You can use the Cluster Management monitoring commands to check the Oracle Key Vault configuration, health, and deployment modes.
- okv cluster link disable
Theokv cluster link disablecommand disables a cluster node. - okv cluster link enable
Theokv cluster link enablecommand enables the replication link between the current node and the given node in a cluster. - okv cluster link monitor
Theokv cluster link monitorcommand monitors the replication link. - okv cluster service monitor
Theokv cluster service monitorcommand monitors the status of a specific node or all nodes in a cluster. - okv cluster service start
Theokv cluster service startcommand starts the cluster service of a node. - okv cluster service stop
Theokv cluster service stopcommand stops the cluster service of a node.
8.1 okv cluster link disable
The okv cluster link disable command disables a cluster node.
Required Authorization
System Administrator role
okv cluster link disable command displays the following:
- The command result, whether it is Success or failure.
Syntax
okv cluster link disableJSON Input File Template
{
"service" : {
"category" : "cluster",
"resource" : "link",
"action" : "enable",
"options" : {
"nodeName" : "#VALUE",
"targetNode" : "#VALUE"
}
}
}Parameters
| Parameter | Required | Description |
|---|---|---|
--node-name |
Required |
Name of the cluster node. |
--target-node |
Optional |
Name of the node to initiate disabling of a node. |
JSON Example
- Generate JSON input for the
okv cluster link disablecommand:okv cluster link disable --generate-json-input
The generated JSON input is displayed as shown in the earlier section JSON Input File Template.
- Save the generated input to a file, for example,
link_disable.json. - Run the
okv cluster link disablecommand using the generated JSON file. For example:okv cluster link disable --from-json link_disable.jsonOutput similar to the following appears:
{ "result" : "Success" }
Parent topic: Cluster Monitoring Commands
8.2 okv cluster link enable
The okv cluster link enable command enables the replication link between the current node and the given node in a cluster.
Required Authorization
System Administrator role
The okv cluster link enable command displays the command result - Success or Failure.
Syntax
okv cluster link enable --generate-json-inputJSON Input File Template
{
"service" : {
"category" : "cluster",
"resource" : "link",
"action" : "enable",
"options" : {
"nodeName" : "#VALUE",
"targetNode" : "#VALUE"
}
}
}Parameters
| Parameter | Required | Description |
|---|---|---|
--node-name |
Required |
Name of the cluster target node to enable. |
--target-node |
Optional |
Name of the node to initiate disabling of a node |
JSON Example
- Generate JSON input for the
okv cluster link enablecommand:okv cluster link enable
The generated JSON input is displayed as shown in the earlier section JSON Input File Template.
- Save the generated input to a file, for example,
link_enable.json. - Run the
okv cluster link enablecommand using the generated JSON file. For example:okv cluster link enable --from-json link_enable.jsonOutput similar to the following appears:
{ "result" : "Success" }
Parent topic: Cluster Monitoring Commands
8.3 okv cluster link monitor
The okv cluster link monitor command monitors the replication link.
Required Authorization
System Administrator role
Syntax
okv cluster link monitorJSON 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 Example
- Generate JSON input for the
okv cluster link monitorcommand:okv cluster link monitor --generate-json-input
The generated JSON input is displayed as shown in the earlier section JSON Input File Template.
- 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
8.4 okv cluster service monitor
The okv cluster service monitor command monitors the status of a specific node or all nodes in a cluster.
Required Authorization
System Administrator role
Syntax
okv cluster service monitor [--all-nodes] --node <node>JSON Input File Template
{
"service" : {
"category" : "cluster",
"resource" : "service",
"action" : "monitor",
"options" : {
"nodeName" : "#VALUE",
"allNodes" : "#TRUE|FALSE"
}
}
}Parameters
| Parameter | Required | Description |
|---|---|---|
--node-name |
Required |
Name of the cluster node. |
--all-nodes |
Optional |
Shows the status of all nodes in the cluster (TRUE / FALSE). |
JSON Example
- Generate JSON input for the
okv cluster service monitorcommand:okv cluster service monitor
The generated JSON input is displayed as shown in the earlier section JSON Input File Template.
- Save the generated input to a file, for example,
service_monitor.json. - Run the
okv cluster service monitorcommand using the generated JSON file. For example:okv cluster service monitor --from-json service_monitor.jsonOutput similar to the following appears:
{ "result" : "Success", "value" : { "clusterServiceStatus":"Up", "nodeID":"2", "nodeName":"node2" } }Alternatively, if a value is set in the allnodes parameter, the following output will be displayed when all nodes are active:
{ "result" : "Success", "value" : [ { "clusterServiceStatus" : "Up", "nodeID" : 1, "nodeName" : "node1" }, { "clusterServiceStatus" : "Up", "nodeID" : 2, "nodeName" : "node2" }, { "clusterServiceStatus" : "Up", "nodeID" : 3, "nodeName" : "node3" } ] }The following output will be displayed when node3 is disabled:
{ "result" : "Success", "value" : [ { "clusterServiceStatus" : "Up", "nodeID" : 1, "nodeName" : "node1" }, { "clusterServiceStatus" : "Up", "nodeID" : 2, "nodeName" : "node2" }, { "clusterServiceStatus" : "Down", "nodeID" : 3, "nodeName" : "node3" } ] }
Parent topic: Cluster Monitoring Commands
8.5 okv cluster service start
The okv cluster service start command starts the cluster service of a node.
Required Authorization
System Administrator role
Syntax
okv cluster service startJSON Input File Template
{
"service" : {
"category":"cluster",
"resource":"service",
"action":"start",
"options":{
"nodeName":"#VALUE"
}
}
}Parameters
| Parameter | Required | Description |
|---|---|---|
--node-name |
Required |
Name of the cluster node. |
JSON Example
- Generate JSON input for the
okv cluster service startcommand:okv cluster service start --generate-json-input
The generated JSON input is displayed as shown in the earlier section JSON Input File Template.
- Save the generated input to a file, for example,
service_start.json. - Run the
okv cluster service startcommand using the generated JSON file. For example:okv cluster service start --from-json service_start.jsonOutput similar to the following appears:
{ "result" : "Success" }
Parent topic: Cluster Monitoring Commands
8.6 okv cluster service stop
The okv cluster service stop command stops the cluster service of a node.
Required Authorization
System Administrator role
Syntax
okv cluster service stopJSON Input File Template
{
"service" : {
"category" : "cluster",
"resource" : "service",
"action" : "stop",
"options" : {
"nodeName" : "#VALUE"
}
}
}Parameters
| Parameter | Required | Description |
|---|---|---|
--node-name |
Required |
Name of the cluster node |
CLI Command
okv cluster service stop --node <argument>JSON Example
- Generate JSON input for the
okv cluster service stopcommand:okv cluster service stop --generate-json-input
The generated JSON input is displayed as shown in the earlier section JSON Input File Template.
- Save the generated input to a file, for example,
service_stop.json. - Run the
okv cluster service stopcommand using the generated JSON file. For example:okv cluster service stop --from-json service_stop.jsonOutput similar to the following appears:
{ "result" : "Success" }
Parent topic: Cluster Monitoring Commands