ipmcset -t storage -d ctrlconfig
更新时间: 2026/07/16
在Gitcode上查看源码ipmcset -t storage -d ctrlconfig
命令功能
设置 RAID 控制器配置
命令格式
text
ipmcset -t storage -d ctrlconfig -v <RAID Controller ID> <[-cb <enabled|disabled>] [-smartercb <enabled|disabled>] [-jbod <enabled|disabled>] [-mode <RAID|HBA|JBOD|Mixed>] [-restore]>参数说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
ControlId | ReqBody | number | 是 | - | [{"Type": "Range", "Formula": [0, 255]}] | -v <RAID Controller ID> The RAID controller which will be set. It is mandatory. |
CopyBackState | ReqBody | - | 否 | - | [{"Type": "Enum", "Formula": ["enabled", "disabled", "default"]}] | -cb <enabled|disabled> Set RAID controller Copyback to be enabled or disabled. enabled = Enable RAID controller Copyback disabled = Disable RAID controller Copyback |
SmarterCopyBackState | ReqBody | - | 否 | - | [{"Type": "Enum", "Formula": ["enabled", "disabled", "default"]}] | -smartercb <enabled|disabled> Set RAID controller Copyback on SMART error to be enabled or disabled. It will be disabled when 'Copyback' is disabled. enabled = Enable RAID controller Copyback on SMART error. It can be enabled only when Copyback is enabled disabled = Disable RAID controller Copyback on SMART error |
JBODState | ReqBody | - | 否 | - | [{"Type": "Enum", "Formula": ["enabled", "disabled", "default"]}] | -jbod <enabled|disabled> Set RAID controller JBOD to be enabled or disabled. enabled = Enable RAID controller JBOD mode disabled = Disable RAID controller JBOD mode |
WorkMode | ReqBody | string | 否 | - | [{"Type": "Enum", "Formula": ["RAID", "JBOD", "HBA", "Mixed", "default"]}] | -mode <RAID|HBA|JBOD|Mixed> Set RAID controller working mode. |
Restore | ReqBody | - | 否 | - | - | -restore Restore RAID controller settings. It can't be specified with other options simultaneously but mode. |
响应/输出说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
CopyBackStateExist | RspBody | - | 否 | - | - | - |
SmarterCopyBackStateExist | RspBody | - | 否 | - | - | - |
JBODStateExist | RspBody | - | 否 | - | - | - |
WorkModeExist | RspBody | - | 否 | - | - | - |
RestoreExist | RspBody | - | 否 | - | - | - |
后端处理流
| Step | Type | Path/URI | Interface | Field/Method | Source | Destination |
|---|---|---|---|---|---|---|
| 1 | Method | /bmc/kepler/MdbService | bmc.kepler.Mdb | GetPath | - | {"Path": "Path"} |
| 2 | Method | ${ProcessingFlow[1]/Destination/Path} | bmc.kepler.Systems.Storage.Controller | SetCopybackState | - | - |
| 3 | Method | ${ProcessingFlow[1]/Destination/Path} | bmc.kepler.Systems.Storage.Controller | SetSmarterCopyBackState | - | - |
| 4 | Method | ${ProcessingFlow[1]/Destination/Path} | bmc.kepler.Systems.Storage.Controller | SetJBODState | - | - |
| 5 | Method | ${ProcessingFlow[1]/Destination/Path} | bmc.kepler.Systems.Storage.Controller | SetWorkMode | - | - |
| 6 | Method | ${ProcessingFlow[1]/Destination/Path} | bmc.kepler.Systems.Storage.Controller | RestoreDefaultSettings | - | - |
使用示例
text
ipmcset -t storage -d ctrlconfig -v <RAID Controller ID> <[-cb <enabled|disabled>] [-smartercb <enabled|disabled>] [-jbod <enabled|disabled>] [-mode <RAID|HBA|JBOD|Mixed>] [-restore]>输出样例
| Scenario | Output | Source |
|---|---|---|
| 成功 | Set RAID controller Copyback state successfully. | interface_config/cli/echoes/ipmcset/storage_ctrlconfig |
| 成功 | Set RAID controller Copyback state on SMART error successfully. | interface_config/cli/echoes/ipmcset/storage_ctrlconfig |
| 成功 | Set RAID controller JBOD mode successfully. | interface_config/cli/echoes/ipmcset/storage_ctrlconfig |
| 成功 | Set RAID controller mode successfully. | interface_config/cli/echoes/ipmcset/storage_ctrlconfig |
| 成功 | Restore RAID controller settings successfully. | interface_config/cli/echoes/ipmcset/storage_ctrlconfig |
来源信息
| Item | Value |
|---|---|
| 命令类型 | ipmcset |
| target | storage |
| dataitem | ctrlconfig |
| URI | /cli/v1/storage/ctrlconfig |
| Interface Type | Patch |
| 配置来源 | interface_config/cli/ipmcset/storage.json |
| 请求版本 | 26.06_2026.06.30 |
| 源码提交 | 5606349e |
| 生成时间 | 2026-07-16T01:48:37 |