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

ipmcset -d upgrade

返回总览 | 返回命令索引

命令功能

升级组件

命令格式

text
ipmcset -d upgrade -v <filepath> [activemode] [-s <systemid>]

参数说明

NameLocationTypeRequiredDefaultConstraintDescription
SystemIdReqHeader----
filepathReqBodystring-[{"Type": "Regex", "Formula": "^((https|sftp|nfs|cifs|scp)😕/.{1,1000}|/tmp/.{1,246})$"}]e.g.: /tmp/image.hpm
activemodeReqBodyinteger-[{"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.

响应/输出说明

NameLocationTypeRequiredDefaultConstraintDescription
GetRealUpgradePathRspBody----
BmcActiveModeRspBody----
SoftwareNameRspBody----

后端处理流

StepTypePath/URIInterfaceField/MethodSourceDestination
1Task/bmc/kepler/UpdateServicebmc.kepler.UpdateServiceStartUpgrade--
2Property/bmc/kepler/Managers/1/BMCbmc.kepler.Managers.BMC--{"SoftwareName": "SoftwareName"}

使用示例

text
ipmcset -d upgrade -v <filepath> [activemode] [-s <systemid>]

输出样例

ScenarioOutputSource
处理中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

来源信息

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