ipmcset -t service -d state
更新时间: 2026/07/16
在Gitcode上查看源码ipmcset -t service -d state
命令功能
设置服务启用状态
命令格式
text
ipmcset -t service -d state -v <option> <enabled|disabled>参数说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
option | ReqBody | string | 是 | - | - | SSH SSH service state SNMP SNMP service state KVM KVM service state VNC VNC service state VMM VMM service state Video Video service state HTTP web server HTTP service state HTTPS web server HTTPS service state RMCP RMCP service state RMCP+ RMCP+ service state SSDP SSDP service state |
state | ReqBody | string | 是 | - | [{"Type": "Enum", "Formula": ["enabled", "disabled"]}] | - |
响应/输出说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
option | RspBody | - | 否 | - | - | - |
state | RspBody | - | 否 | - | - | - |
AuthenticationEnabled | RspBody | - | 否 | - | - | - |
IsMultihost | RspBody | - | 否 | - | - | - |
后端处理流
| Step | Type | Path/URI | Interface | Field/Method | Source | Destination |
|---|---|---|---|---|---|---|
| 1 | Property | /bmc/kepler/AccountService/CertificateAuthentication | bmc.kepler.AccountService.CertificateAuthentication | - | - | {"Enabled": "AuthenticationEnabled"} |
| 2 | Property | /bmc/kepler/Managers/1/NetworkProtocol/${Statements/GetServiceStateType()[2]} | bmc.kepler.Managers.NetworkProtocol.PortConfig | - | {"Enabled": "${Statements/GetState()}"} | - |
| 3 | Property | /bmc/kepler/Managers/1/NetworkProtocol/${Statements/GetServiceStateType()[2]} | bmc.kepler.Managers.NetworkProtocol.PortConfig | - | {"Enabled": "${Statements/GetState()}"} | - |
| 4 | Property | /bmc/kepler/Managers/1/NetworkProtocol/${Statements/GetServiceStateType()[2]} | bmc.kepler.Managers.NetworkProtocol.PortConfig | - | {"Enabled": "${Statements/GetState()}"} | - |
| 5 | Property | /bmc/kepler/Managers/1/Multihost | bmc.kepler.Managers.Multihost | - | - | {"HostType": "HostType"} |
| 6 | Property | /bmc/kepler/Managers/1/SOC/Env | bmc.kepler.Managers.SOC.Env | - | - | {"SystemIds": "SystemIds"} |
| 7 | Property | ${Statements/GetMultiSystemPath()} | bmc.kepler.Managers.NetworkProtocol.PortConfig | - | {"Enabled": "${Statements/GetState()}"} | - |
使用示例
text
ipmcset -t service -d state -v <option> <enabled|disabled>输出样例
| Scenario | Output | Source |
|---|---|---|
| 失败 | Invalid service name. | interface_config/cli/echoes/ipmcset/service_state |
| 失败 | Set SSH service state enabled failed. SSH and two-factor authentication cannot be enabled at the same time. | interface_config/cli/echoes/ipmcset/service_state |
| 失败 | Invalid service name. | interface_config/cli/echoes/ipmcset/service_state |
| 成功 | Set <value> service state <value> successfully. | interface_config/cli/echoes/ipmcset/service_state |
来源信息
| Item | Value |
|---|---|
| 命令类型 | ipmcset |
| target | service |
| dataitem | state |
| URI | /cli/v1/service/state |
| Interface Type | Patch |
| 配置来源 | interface_config/cli/ipmcset/service.json |
| 请求版本 | 26.06_2026.06.30 |
| 源码提交 | 5606349e |
| 生成时间 | 2026-07-16T01:48:37 |