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

  1. Generate JSON input for the okv cluster link monitor command.
    okv cluster link monitor --generate-json-input

    The generated input appears as follows:

    {
     "service" : {
      "category" : "cluster,
      "resource" : "link",
      "action" : "monitor,
      "options" : {
       "nodeName" : "#VALUE"
      }  
     }
    }
  2. Save the generated input to a file, for example, link_monitor.json.
  3. Run the okv cluster link monitor command using the generated JSON file. For example:
    okv cluster link monitor --from-json

    Output 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"
          }
        }
     }