您可以使用 ListClusterFaults 方法列出有关在集群上检测到的任何故障的信息。使用此方法,您可以列出当前故障以及已解决的故障。系统每 30 秒缓存一次故障。
此方法具有以下输入参数:
名称 | 说明 | 类型 | 默认值 | 必需 |
---|---|---|---|---|
bestPractices | 包括由次优系统配置触发的故障。可能值:
|
布尔型 | 无 | 否 |
faultTypes | 确定返回的故障类型。可能值:
|
字符串 | all | 否 |
此方法的请求类似于以下示例:
{ "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" } ] } }