ipmcset -d powerstate
更新时间: 2026/07/16
在Gitcode上查看源码

ipmcset -d powerstate

返回总览 | 返回命令索引

命令功能

设置 FRU0 电源状态

命令格式

text
ipmcset -d powerstate -v <option> [-s <systemid>]

参数说明

NameLocationTypeRequiredDefaultConstraintDescription
SystemIdReqHeader----
optionReqBodyinteger-[{"Type": "Enum", "Formula": [0, 1, 2]}]0 Normal Power Off, deactivate FRU 1 Power on, activate FRU 2 Forced Power Off, deactivate FRU

响应/输出说明

NameLocationTypeRequiredDefaultConstraintDescription
optionRspBody----
HostTypeRspBody----
IdListRspBody----

后端处理流

使用示例

text
ipmcset -d powerstate -v <option> [-s <systemid>]

输出样例

ScenarioOutputSource
成功[System<value>] Control fru0 <value> successfully.interface_config/cli/echoes/ipmcset/fru0_powerstate
成功Control fru0 <value> successfully.interface_config/cli/echoes/ipmcset/fru0_powerstate

来源信息

ItemValue
命令类型ipmcset
target_
dataitempowerstate
URI/cli/v1/fru0/powerstate
Interface TypePatch
配置来源interface_config/cli/ipmcset/fru0.json
请求版本26.06_2026.06.30
源码提交5606349e
生成时间2026-07-16T01:48:37