本产品推出了新版本。
简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。
ListClusterFaults
您可以使用 ListClusterFaults 方法列出有关在集群上检测到的任何故障的信息。使用此方法,您可以列出当前故障以及已解决的故障。系统每 30 秒缓存一次故障。
Parameters
此方法具有以下输入参数:
| Name | Description | Type | 默认值 | Required |
|---|---|---|---|---|
最佳实践 |
包括由次优系统配置触发的故障。可能值:
|
boolean |
无 |
否 |
故障类型 |
确定返回的故障类型。可能值:
|
string |
全部 |
否 |
返回值
此方法具有以下返回值:
Name |
Description |
Type |
故障 |
描述请求的集群故障的对象。 |
请求示例
此方法的请求类似于以下示例:
{
"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"
}
]
}
}
自版本以来的新增功能
9.6