ipmcset -d psuswitch
更新时间: 2026/07/16
在Gitcode上查看源码ipmcset -d psuswitch
命令功能
设置 PSU 电源开关
命令格式
text
ipmcset -d psuswitch -v psu<N> <value>参数说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
N | ReqBody | string | 是 | - | [{"Type": "Regex", "Formula": "^psu([1-9]|[12][0-9]|30)$"}] | psu1 is the first power source N is psuid, 1 <= N <= 30 |
value | ReqBody | integer | 是 | - | [{"Type": "Enum", "Formula": [2]}] | 2: Force reset |
响应/输出说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
SlotNumber | RspBody | - | 否 | - | - | - |
SetPsuSwitchResult | RspBody | - | 否 | - | - | - |
后端处理流
| Step | Type | Path/URI | Interface | Field/Method | Source | Destination |
|---|---|---|---|---|---|---|
| 1 | Method | /bmc/kepler/MdbService | bmc.kepler.Mdb | GetPath | - | {"Path": "Path"} |
使用示例
text
ipmcset -d psuswitch -v psu<N> <value>输出样例
| Scenario | Output | Source |
|---|---|---|
| 成功 | Success. | interface_config/cli/echoes/ipmcset/_psuswitch |
| 其他 | Psu<value> does not exist. | interface_config/cli/echoes/ipmcset/_psuswitch |
| 其他 | Do not support set psu switch. | interface_config/cli/echoes/ipmcset/_psuswitch |
| 其他 | The current psu<value> status does not support the reset operation. | interface_config/cli/echoes/ipmcset/_psuswitch |
| 失败 | Set psu switch failed. | interface_config/cli/echoes/ipmcset/_psuswitch |
来源信息
| Item | Value |
|---|---|
| 命令类型 | ipmcset |
| target | _ |
| dataitem | psuswitch |
| URI | /cli/v1/_/psuswitch |
| Interface Type | Patch |
| 配置来源 | interface_config/cli/ipmcset/target.json |
| 请求版本 | 26.06_2026.06.30 |
| 源码提交 | 5606349e |
| 生成时间 | 2026-07-16T01:48:37 |