ipmcset -d activeport
更新时间: 2026/07/16
在Gitcode上查看源码ipmcset -d activeport
命令功能
设置 EthGroup 活动端口
命令格式
text
ipmcset -d activeport -v <option> [portid] [groupid]参数说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
port_type | ReqBody | integer | 否 | - | - | - |
port_num | ReqBody | integer | 否 | - | - | - |
group_id | ReqBody | integer | 否 | - | - | - |
响应/输出说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
port_type | RspBody | - | 否 | - | - | - |
port_num | RspBody | - | 否 | - | - | - |
port_type_list | RspBody | - | 否 | - | - | - |
params_valid | RspBody | - | 否 | - | - | - |
port_exist | RspBody | - | 否 | - | - | - |
netmode_is_supported | RspBody | - | 否 | - | - | - |
IsGroupIdValid | RspBody | - | 否 | - | - | - |
后端处理流
| Step | Type | Path/URI | Interface | Field/Method | Source | Destination |
|---|---|---|---|---|---|---|
| 1 | List | /bmc/kepler/Managers/1/EthernetInterfaces | bmc.kepler.Managers.EthernetInterfaces.MgmtPort | - | - | {"Members": "port_paths"} |
| 2 | Property | ${Statements/PatchGroupID()/EthernetInterfaces/Path} | ${Statements/PatchGroupID()/EthernetInterfaces/Interface} | - | - | {"${Statements/PatchGroupID()/EthernetInterfaces/VLANEnable}": "VLANEnable", "VLANId": "VLANId", "NetMode": "NetMode"} |
| 3 | Method | ${Statements/PatchGroupID()/EthernetInterfaces/Path} | ${Statements/PatchGroupID()/EthernetInterfaces/Interface} | SetNetworkConfig | - | - |
使用示例
text
ipmcset -d activeport -v <option> [portid] [groupid]输出样例
| Scenario | Output | Source |
|---|---|---|
| 其他 | Usage: ipmcset -d activeport -v <option> [portid] [groupid] | interface_config/cli/echoes/ipmcset/_activeport |
| 其他 | Options are: | interface_config/cli/echoes/ipmcset/_activeport |
| 其他 | 0 : Dedicated network port, without parameter [portid] | interface_config/cli/echoes/ipmcset/_activeport |
| 其他 | <value> : <value> network port | interface_config/cli/echoes/ipmcset/_activeport |
| 其他 | Input port does not exist. | interface_config/cli/echoes/ipmcset/_activeport |
| 成功 | Set active port successfully. | interface_config/cli/echoes/ipmcset/_activeport |
来源信息
| Item | Value |
|---|---|
| 命令类型 | ipmcset |
| target | _ |
| dataitem | activeport |
| URI | /cli/v1/_/activeport |
| Interface Type | Patch |
| 配置来源 | interface_config/cli/ipmcset/network.json |
| 请求版本 | 26.06_2026.06.30 |
| 源码提交 | 5606349e |
| 生成时间 | 2026-07-16T01:48:37 |