ListClusterFaults

您可以使用 ListClusterFaults 方法列出有关在集群上检测到的任何故障的信息。使用此方法,您可以列出当前故障以及已解决的故障。系统每 30 秒缓存一次故障。

参数

此方法具有以下输入参数:

名称 说明 类型 默认值 必需
bestPractices 包括由次优系统配置触发的故障。可能值:
  • true
  • false
布尔型
faultTypes 确定返回的故障类型。可能值:
  • current:列出未解决的活动故障。
  • resolved:列出以前检测到并已解决的故障。
  • all:列出当前故障和已解决的故障。您可以在 fault 对象的“resolved”成员中查看故障状态。
字符串 all

返回值

此方法具有以下返回值:

名称 说明 类型
faults 描述请求的集群故障的对象。 fault

请求示例

此方法的请求类似于以下示例:

{
  "method": "ListClusterFaults",
    "params": {
      "faultTypes": "current",
      "bestPractices": true
    },
    "id": 1
}

响应示例

此方法返回类似于以下示例的响应:

{
  "id": 1,
  "result": {
    "faults": [
      {
        "clusterFaultID": 1,
        "code": "notUsingLACPBondMode",
        "data": null,
        "date": "2016-04-26T14:57:04.275286Z",
        "details": "Bond1G interfaces found not using LACP bond mode. Nodes not set to LACP bond mode: {1,2,4,5}",
        "driveID": 0,
        "driveIDs": [],
        "nodeHardwareFaultID": 0,
        "nodeID": 0,
        "resolved": false,
        "resolvedDate": "",
        "serviceID": 0,
        "severity": "bestPractice",
        "type": "cluster"
      },
      {
        "clusterFaultID": 9,
        "code": "disconnectedClusterPair",
        "data": null,
        "date": "2016-04-26T20:40:08.736597Z",
        "details": "One of the clusters in a pair may have become misconfigured or disconnected.  Remove the local pairing and retry pairing the clusters. Disconnected Cluster Pairs: []. Misconfigured Cluster Pairs: [3]",
        "driveID": 0,
        "driveIDs": [],
        "nodeHardwareFaultID": 0,
        "nodeID": 0,
        "resolved": false,
        "resolvedDate": "",
        "serviceID": 0,
        "severity": "warning",
        "type": "cluster"
      }
    ]
  }
}