ipmcget -d ipinfo
更新时间: 2026/07/16
在Gitcode上查看源码ipmcget -d ipinfo
命令功能
查询 IP 信息
命令格式
text
ipmcget -d ipinfo参数说明
无
响应/输出说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
NetMode | RspBody | - | 否 | - | - | - |
EthName | RspBody | - | 否 | - | - | - |
Mac | RspBody | - | 否 | - | - | - |
LinkLocalAddress | RspBody | - | 否 | - | - | - |
SLAACAddressList | RspBody | - | 否 | - | - | - |
NcsiEnable | RspBody | - | 否 | - | - | - |
NCSIVLANEnable | RspBody | - | 否 | - | - | - |
NCSIVLANId | RspBody | - | 否 | - | - | - |
IpModeIpv4 | RspBody | - | 否 | - | - | - |
IpAddrIpv4 | RspBody | - | 否 | - | - | - |
SubnetMask | RspBody | - | 否 | - | - | - |
DefaultGatewayIpv4 | RspBody | - | 否 | - | - | - |
BackupIpAddrIpv4 | RspBody | - | 否 | - | - | - |
BackupSubnetMaskIpv4 | RspBody | - | 否 | - | - | - |
IpModeIpv6 | RspBody | - | 否 | - | - | - |
IpAddrIpv6 | RspBody | - | 否 | - | - | - |
PrefixLength | RspBody | - | 否 | - | - | - |
DefaultGatewayIpv6 | RspBody | - | 否 | - | - | - |
DedicatedVLANEnable | RspBody | - | 否 | - | - | - |
DedicatedVLANId | RspBody | - | 否 | - | - | - |
BackupIpActivated | RspBody | - | 否 | - | - | - |
ActivePort | RspBody | - | 否 | - | - | - |
IpVersion | RspBody | - | 否 | - | - | - |
Channel | RspBody | - | 否 | - | - | - |
EthernetInterfaceGroups | RspBody | - | 否 | - | - | - |
后端处理流
| Step | Type | Path/URI | Interface | Field/Method | Source | Destination |
|---|---|---|---|---|---|---|
| 1 | Property | /bmc/kepler/Managers/1/EthernetInterfaces | bmc.kepler.Managers.EthernetInterfaces | - | - | {"NetMode": "NetMode", "EthName": "EthName", "Mac": "Mac", "PortId": "PortId", "LinkLocalAddress": "LinkLocalAddress", "SLAACAddressList": "SLAACAddressList", "NcsiEnable": "NcsiEnable", "VLANEnable": "NCSIVLANEnable", "VLANId": "NCSIVLANId", "BackupIpActivated": "BackupIpActivated", "IpVersion": "IpVersion", "Channel": "Channel"} |
| 2 | Property | /bmc/kepler/Managers/1/EthernetInterfaces/Ipv4 | bmc.kepler.Managers.EthernetInterfaces.Ipv4 | - | - | {"IpMode": "IpModeIpv4", "IpAddr": "IpAddrIpv4", "SubnetMask": "SubnetMask", "DefaultGateway": "DefaultGatewayIpv4", "BackupIpAddr": "BackupIpAddrIpv4", "BackupSubnetMask": "BackupSubnetMaskIpv4"} |
| 3 | Property | /bmc/kepler/Managers/1/EthernetInterfaces/Ipv6 | bmc.kepler.Managers.EthernetInterfaces.Ipv6 | - | - | {"IpMode": "IpModeIpv6", "IpAddr": "IpAddrIpv6", "PrefixLength": "PrefixLength", "DefaultGateway": "DefaultGatewayIpv6"} |
| 4 | Property | /bmc/kepler/Managers/1/EthernetInterfaces/1 | bmc.kepler.Managers.EthernetInterfaces.MgmtPort | - | - | {"VLANEnabled": "DedicatedVLANEnable", "VLANId": "DedicatedVLANId"} |
| 5 | Method | /bmc/kepler/Managers/1/EthernetInterfaces | bmc.kepler.Managers.EthernetInterfaces | GetAllPort | - | {"Port": "Port"} |
| 6 | List | /bmc/kepler/Managers/1/EthernetInterfaces/EthGroup | bmc.kepler.Managers.EthernetInterfaces.EthGroup | - | - | {"Members": "group_list"} |
使用示例
text
ipmcget -d ipinfo输出样例
来源信息
| Item | Value |
|---|---|
| 命令类型 | ipmcget |
| target | _ |
| dataitem | ipinfo |
| URI | /cli/v1/_/ipinfo |
| Interface Type | Get |
| 配置来源 | interface_config/cli/ipmcget/network.json |
| 请求版本 | 26.06_2026.06.30 |
| 源码提交 | 5606349e |
| 生成时间 | 2026-07-16T01:48:37 |