简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。
创建支持包
您可以使用 `CreateSupportBundle`在节点目录下创建支持包文件。创建完成后,该软件包将以 tar 文件的形式存储在节点上(可通过 extraArgs 参数选择 gz 压缩选项)。
参数
该方法有以下输入参数:
| 名称 | 描述 | 类型 | 默认值 | 必填项 |
|---|---|---|---|---|
捆绑包名称 |
支持包的唯一名称。如果没有提供名称,则使用“supportbundle”和节点名称作为文件名。 |
string |
无 |
否 |
额外参数 |
使用“--compress gz”将支持包创建为 tar.gz 文件。 |
string |
无 |
否 |
超时时间秒 |
支持包脚本运行的秒数。 |
整数 |
1500 |
否 |
返回值
此方法具有以下返回值:
名称 |
描述 |
类型 |
细节 |
支持方案的详细信息。可能值:
|
JSON 对象 |
期间 |
用于创建支持包的时间,格式为:HH:MM:SS.ssssss。 |
string |
结果 |
支持包操作的成功或失败。 |
string |
请求示例
该方法的请求类似于以下示例:
{
"method": "CreateSupportBundle",
"params": {
"extraArgs": "--compress gz"
},
"id": 1
}
响应示例
此方法返回类似于以下示例的响应:
{
"id": 1,
"result": {
"details": {
"bundleName": "supportbundle",
"extraArgs": "--compress gz",
"files": [
"supportbundle.nodehostname.tar.gz"
],
"output": "timeout -s KILL 1500s /sf/scripts/sfsupportbundle --quiet --compress gz /tmp/solidfire-dtemp.1L6bdX/supportbundle<br><br>Moved '/tmp/solidfire-dtemp.1L6bdX/supportbundle.nodehostname.tar.gz' to /tmp/supportbundles",
"timeoutSec": 1500,
"url": [
"https://nodeIP:442/config/supportbundles/supportbundle.nodehostname.tar.gz"
]
},
"duration": "00:00:43.101627",
"result": "Passed"
}
}
自版本以来的新版本
9.6