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

ipmcset -d vlan

返回总览 | 返回命令索引

命令功能

设置带外 VLAN

命令格式

text
ipmcset -d vlan -v <off | id(1~4094)> [port type]

参数说明

NameLocationTypeRequiredDefaultConstraintDescription
vlanidReqBody----
port_typeReqBody----

响应/输出说明

NameLocationTypeRequiredDefaultConstraintDescription
DedicatedVlanSupportedRspBody----
SetVlanParamsRspBody----
ResultRspBody----
MinVLANIdRspBody----
MaxVLANIdRspBody----

后端处理流

StepTypePath/URIInterfaceField/MethodSourceDestination
1Property/bmc/kepler/Managers/1/EthernetInterfacesbmc.kepler.Managers.MgmtPortCapability--{"DedicatedVlanSupported": "DedicatedVlanSupported"}
2Method/bmc/kepler/Managers/1/EthernetInterfacesbmc.kepler.Managers.EthernetInterfacesSetVLANConfig-{"Result": "Result"}
3Property/bmc/kepler/Managers/1/EthernetInterfacesbmc.kepler.Managers.EthernetInterfaces--{"MinVLANId": "MinVLANId", "MaxVLANId": "MaxVLANId"}

使用示例

text
ipmcset -d vlan -v <off | id(1~4094)> [port type]

输出样例

ScenarioOutputSource
成功Set NCSI Port vlan successfully.interface_config/cli/echoes/ipmcset/_vlan
成功Set Dedicated Port vlan successfully.interface_config/cli/echoes/ipmcset/_vlan
失败Set NCSI Port vlan failed.interface_config/cli/echoes/ipmcset/_vlan
失败Set Dedicated Port vlan failed.interface_config/cli/echoes/ipmcset/_vlan
其他Usage: ipmcset -d vlan -v <off | id(<value>~<value>)> [port type]interface_config/cli/echoes/ipmcset/_vlan
其他Port types are:interface_config/cli/echoes/ipmcset/_vlan
其他0 : NCSI shared portinterface_config/cli/echoes/ipmcset/_vlan
其他1 : Dedicated portinterface_config/cli/echoes/ipmcset/_vlan

来源信息

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