ipmcset -d upgrade
更新时间: 2026/07/16
在Gitcode上查看源码ipmcset -d upgrade
命令功能
升级组件
命令格式
text
ipmcset -d upgrade -v <filepath> [activemode] [-s <systemid>]参数说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
SystemId | ReqHeader | - | 否 | - | - | - |
filepath | ReqBody | string | 是 | - | [{"Type": "Regex", "Formula": "^((https|sftp|nfs|cifs|scp)😕/.{1,1000}|/tmp/.{1,246})$"}] | e.g.: /tmp/image.hpm |
activemode | ReqBody | integer | 否 | - | [{"Type": "Enum", "Formula": [0, 1]}] | e.g.: 1 0: firmware need to reboot manually after openUBMC is upgraded. 1: firmware will reboot after openUBMC is upgraded(default). systemid: e.g.: 1 Note: 1.If OS is power on,the BIOS upgrade file is uploaded to openUBMC and take effect when OS is power-off or reseted next time. 2.If OS is power on,the CPLD or VRD upgrade file is uploaded to openUBMC and take effect when OS is power-off. 3.Length of filepath should not exceed 255 characters. 4.Systemid indicates the host whose firmware is to be upgraded. The host must be in position. If systemid is not specified, all hosts are upgraded by default. |
响应/输出说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
GetRealUpgradePath | RspBody | - | 否 | - | - | - |
BmcActiveMode | RspBody | - | 否 | - | - | - |
SoftwareName | RspBody | - | 否 | - | - | - |
后端处理流
| Step | Type | Path/URI | Interface | Field/Method | Source | Destination |
|---|---|---|---|---|---|---|
| 1 | Task | /bmc/kepler/UpdateService | bmc.kepler.UpdateService | StartUpgrade | - | - |
| 2 | Property | /bmc/kepler/Managers/1/BMC | bmc.kepler.Managers.BMC | - | - | {"SoftwareName": "SoftwareName"} |
使用示例
text
ipmcset -d upgrade -v <filepath> [activemode] [-s <systemid>]输出样例
| Scenario | Output | Source |
|---|---|---|
| 处理中 | Please make sure the <value> is working while upgrading. Updating... | interface_config/cli/echoes/ipmcset/_upgrade |
| 失败 | Upgrade failed. | interface_config/cli/echoes/ipmcset/_upgrade |
| 成功 | Upgrade successfully and need to reboot the BMC to active the upgrade. | interface_config/cli/echoes/ipmcset/_upgrade |
| 成功 | Upgrade successfully. | interface_config/cli/echoes/ipmcset/_upgrade |
| 其他 | No such file or directory. | interface_config/cli/echoes/ipmcset/_upgrade |
来源信息
| Item | Value |
|---|---|
| 命令类型 | ipmcset |
| target | _ |
| dataitem | upgrade |
| URI | /cli/v1/_/upgrade |
| Interface Type | Patch |
| 配置来源 | interface_config/cli/ipmcset/system.json |
| 请求版本 | 26.06_2026.06.30 |
| 源码提交 | 5606349e |
| 生成时间 | 2026-07-16T01:48:37 |