8.3 okv cluster service monitor Command

The okv cluster service monitor command monitors the cluster service of a node.

Required Authorization

System Administrator role

Syntax

okv cluster service monitor --generate-json-input

JSON Input File Template

{
 "service" : {
  "category" : "cluster,
  "resource" : "service",
  "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 service monitor command.
    okv cluster service monitor

    The generated input appears as follows:

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

    Output similar to the following appears:

    {
     "result" : "Success",
     "value" : {
      "clusterServiceStatus":"Up",
      "mode":"Read-Write",
      "nodeID":"2",
      "nodeName":"node2"
      }
     }
    }