cluster.info

cluster.info

Retrieves the resource information within a cluster environment.

JSON-RPC Request

{"jsonrpc": "2.0","id": 1,"method": "cluster.info"}

JSON-RPC Response

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "summary": {
            "nodes": 2,
            "resources": {
                "total": 26,
                "disabled": 0,
                "blocked": 0
            },
            "options": {
                "stonith_enabled": true,
                "symmetric_cluster": true,
                "no_quorum_policy": "ignore",
                "maintenance_mode": false
            },
            "last_change": {
                "time": "Wed Jun 12 18:40:39 2024",
                "user": "root",
                "client": "cibadmin",
                "origin": "sit0002red0"
            },
            "last_update": "Fri Jun 14 17:19:26 2024"
        },
        "nodes": [
            {
                "hostname": "sit0002red0",
                "standby": false,
                "unclean": false,
                "resources_running": 16
            },
            {
                "hostname": "sit0002red1",
                "standby": false,
                "unclean": false,
                "resources_running": 10
            }
        ]
    }
}

CLI Example

rvc cluster info

Response

Summary: 
  Nodes......: 2
  Resources..: 
    Total...: 32
    Disabled: 0
    Blocked.: 0
  Options....: 
    Stonith Enabled..: true
    Symmetric Cluster: true
    No Quorum Policy.: ignore
    Maintenance Mode.: false
  Last Change: 
    Time..: Fri Oct 25 11:32:30 2024
    User..: root
    Client: cibadmin
    Origin: sit0016red1
  Last Update: Mon Oct 28 13:26:47 2024
Nodes..: [
  Hostname.........: sit0016red0
  Standby..........: false
  Unclean..........: false
  Resources Running: 20
  Hostname.........: sit0016red1
  Standby..........: false
  Unclean..........: false
  Resources Running: 12
]