ipmcset -d powerstate
更新时间: 2026/07/16
在Gitcode上查看源码ipmcset -d powerstate
命令功能
设置电源状态
命令格式
text
ipmcset -d powerstate -v <option> [-s <systemid>]参数说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
SystemId | ReqHeader | - | 否 | - | - | - |
option | ReqBody | integer | 是 | - | [{"Type": "Enum", "Formula": [0, 1, 2]}] | 0 Normal Power Off, deactivate FRU 1 Power on, activate FRU 2 Forced Power Off, deactivate FRU |
响应/输出说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
option | RspBody | - | 否 | - | - | - |
HostType | RspBody | - | 否 | - | - | - |
IdList | RspBody | - | 否 | - | - | - |
后端处理流
无
使用示例
text
ipmcset -d powerstate -v <option> [-s <systemid>]输出样例
| Scenario | Output | Source |
|---|---|---|
| 成功 | [System<value>] Control fru0 <value> successfully. | interface_config/cli/echoes/ipmcset/fru0_powerstate |
| 成功 | Control fru0 <value> successfully. | interface_config/cli/echoes/ipmcset/fru0_powerstate |
来源信息
| Item | Value |
|---|---|
| 命令类型 | ipmcset |
| target | _ |
| dataitem | powerstate |
| URI | /cli/v1/_/powerstate |
| Interface Type | Patch |
| 配置来源 | interface_config/cli/ipmcset/fru0.json |
| 请求版本 | 26.06_2026.06.30 |
| 源码提交 | 5606349e |
| 生成时间 | 2026-07-16T01:48:37 |