您可以使用 CreateSupportBundle 在节点的目录下创建支持包文件。创建之后,该支持包将以 tar.gz 文件的形式存储在节点上。
此方法具有以下输入参数:
名称 | 说明 | 类型 | 默认值 | 必需 |
---|---|---|---|---|
bundleName | 支持包的唯一名称。如果未提供任何名称,则使用“supportbundle”和节点名称作为文件名。 | 字符串 | 无 | 否 |
extraArgs | 此参数将传递到 sf_make_support_bundle 脚本。只有在 NetApp 支持部门要求时,才应使用此参数。 | 字符串 | 无 | 否 |
timeoutSec | 支持包脚本运行的秒数。 | 整型 | 1500 | 否 |
此方法具有以下返回值:
名称 | 说明 | 类型 |
---|---|---|
details | 支持包的详细信息。可能值:
|
JSON 对象 |
duration | 创建支持包所使用的时间,格式为 HH:MM:SS.ssssss。 | 字符串 |
result | 支持包操作的成功或失败状态。 | 字符串 |
此方法的请求类似于以下示例:
{ "method": "CreateSupportBundle", "params": {} }, "id": 1 }
此方法返回类似于以下示例的响应:
{ "id": 1, "result": { "details": { "bundleName": "supportbundle", "extraArgs": "", "files": [ "supportbundle.SF-D220.tar.gz" ], "output": "timeout -s KILL 1500s /sf/scripts/sf_make_support_bundle --quiet /tmp/solidfire- dtemp.bYRag7/supportbundle timeout -s KILL 1500s pigz --verbose --fast \"/tmp/solidfire-dtemp.bYRag7/supportbundle.*.tar\" /tmp/solidfire-dtemp.bYRag7/supportbundle.SF-D220.tar to /tmp/solidfire-dtemp.bYRag7/supportbundle.SF-D220.tar.gz Moved '/tmp/solidfire-dtemp.bYRag7/supportbundle.SF-D220.tar.gz' to /tmp/supportbundles", "timeoutSec": 1500, "url": [ "https://192.168.130.155:442/config/supportbundles/supportbundle.SF-D220.tar.gz" ] }, "duration": "00:00:21.166692", "result": "Passed" } }
9.6