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

ipmcset -t maintenance -d ipaddr

返回总览 | 返回命令索引

命令功能

设置维护 IP 地址

命令格式

text
ipmcset -t maintenance -d ipaddr -v <ipaddr> <mask>

参数说明

NameLocationTypeRequiredDefaultConstraintDescription
ipaddrReqBodystring-[{"Type": "Regex", "Formula": "^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$"}]-
maskReqBodystring-[{"Type": "Regex", "Formula": "^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$"}]-

响应/输出说明

NameLocationTypeRequiredDefaultConstraintDescription
ipaddrRspBody----
maskRspBody----

后端处理流

StepTypePath/URIInterfaceField/MethodSourceDestination
1Method/bmc/kepler/Managers/1/EthernetInterfaces/Ipv4bmc.kepler.Managers.EthernetInterfaces.Ipv4SetDedicatedMaintIpMask--

使用示例

text
ipmcset -t maintenance -d ipaddr -v <ipaddr> <mask>

输出样例

ScenarioOutputSource
成功Set the maintenance IP address of dedicated port successfully.interface_config/cli/echoes/ipmcset/maintenance_ipaddr
成功Set the maintenance subnet mask of dedicated port successfully.interface_config/cli/echoes/ipmcset/maintenance_ipaddr

来源信息

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