NetworkAdapters
更新时间: 2026/06/26
在Gitcode上查看源码ResourceDefinition
uris
/redfish/v1/Chassis/chassis_id/NetworkAdapters/networkadapters_id
properties
| 名称 | 类型 | 是否只读 | 取值范围/枚举值 | 说明 |
|---|---|---|---|---|
| @odata.context | string | true | - | 网络适配器资源模型的OData描述信息 |
| @odata.id | string | true | - | 网络适配器资源的访问路径 |
| @odata.type | string | true | - | 网络适配器资源的类型 |
| Id | string | true | - | 网络适配器资源ID |
| Name | string | true | - | 网络适配器资源名称 |
| Manufacturer | string | true | - | 指定网络适配器的芯片制造商 |
| Model | string | true | - | 指定网络适配器的型号 |
| PartNumber | string | true | - | 指定网络适配器的部件号 |
| SerialNumber | string | true | - | 指定网络适配器的序列号 |
| Status | object | true | - | 网络适配器的状态, 包括: ● Health:网络适配器健康状态 ● State:网络适配器使能状态 ● Severity:网络适配器的自定义健康状态 |
| Oem.Public | 自定义属性 | false | - | - |
| Name | string | true | - | 指定网络适配器的对外名称 |
| DriverName | string | true | - | 指定网络适配器的驱动名称 |
| DriverVersion | string | true | - | 指定网络适配器的驱动版本 |
| CardManufacturer | string | true | - | 指定网络适配器的厂商 |
| CardModel | string | true | - | 指定网络适配器的型号 |
| PcieSlotId | number | true | - | 指定网络适配器的PCIe槽位(只有PCIe标卡才有此属性) |
| DeviceLocator | string | true | - | 指定网络适配器的丝印 |
| SlotNumber | number | true | - | 指定网络适配器的槽位号 |
| Position | string | true | - | 指定网络适配器的容器 |
| NetworkTechnology | array | true | - | 指定网络适配器的网络协议 ● Ethernet ● FibreChannel ● iSCSI ● FCoE ● OPA ● IB |
| RootBDF | string | true | - | 指定网络适配器的rootport BDF |
| FirmwareVersion | string | true | - | 指定网络适配器的固件版本 |
| VenderID | string | true | - | 指定网络适配器的厂商ID |
| DeviceID | string | true | - | 指定网络适配器的设备ID |
| SubsystemVenderID | string | true | - | 指定网络适配器的厂商子ID |
| SubsystemDeviceID | string | true | - | 指定网络适配器的设备子ID |
| Configuration | 描述适配器配置信息 | true | - | - |
| Effective | boolean | true | - | 前次下发配置生效状态,包括: ● true ● false |
| PortsConfig | array | true | - | 端口级别的配置信息集合 |
| PortId | number | true | - | 端口编号 |
| SRIOVEnabled | boolean | true | - | SR-IOV使能状态,包括: ● true ● false |
| MultifunctionMode | 枚举 | true | - | 通道模式,包括: ● SF ● NPAR |
| BootEnabled | boolean | true | - | boot使能状态,包括: ● true ● false |
| BootProtocol | 枚举 | true | - | Boot协议类型,包括: ● PXE ● iSCSI ● FCoE ● NONE |
| BootToTarget | boolean | true | - | Bootto Target使能状态,包括: ● true ● false |
| VlanId | number | true | - | 当前Port所属VLAN的ID。 范围:0-4094,仅在PXE模式下支持 |
| SANBootEnabled | boolean | true | - | SAN boot使能状态, 包括: ● True ● false |
| LinkConfig | string | true | - | FC/FCoE功能端口模式配置信息 |
| SerDesConfig | string | true | - | FC端口速率对应的serdes参数配置信息 |
| PFsInfo | array | true | - | PortFunction配置信息 |
| PFId | number | true | - | PortFunction编号, PortId为偶数时, PFId为奇数;否则, PFId为偶数 |
| Protocol | 枚举 | true | - | PortFunction协议类型,包括: ● ETHERNET ● iSCSI ● FCoE |
| PermanentAddress | string | true | - | PortFunction Eth的MAC地址默认显示出厂配置的MAC地址,通过无状态计算配置MAC地址生效后,显示生效值 |
| iSCSIAddress | string | true | - | PortFunctioniSCSI地址 |
| FCoEFipMACAddress | string | true | - | PortFunction FCoE地址 |
| MinBandwidth | number | true | - | 最小带宽占用率,范围:0-100 |
| MaxBandwidth | number | true | - | 最大带宽占用率,范围:0-100 |
| FCoEWWPN | string | true | - | FCoE全球唯一端口号 (弃用) |
| FCoEWWNN | string | true | - | FCoE全球唯一节点号 (弃用) |
| WWPN | string | true | - | FCoE全球唯一端口号 |
| WWNN | string | true | - | FCoE全球唯一节点号 |
| VlanMode | 枚举 | true | - | vlan应用模式,包括: ● NORMAL ● FILTERING ● QINQ |
| VlanId | number | true | - | 当前PortFunction所属VLAN的ID,范围0-4094,仅在FILTERING模式和QINQ模式下支持 |
| VlanPriority | number | true | - | 当前PortFunction所属VLAN优先级,范围:0-7 |
| VlanTrunkRange | string | true | - | 当前VLANID取值约束范围 |
| FCoEBootToTargets | array | true | - | FCoE Boot To Targets配置信息(弃用) |
| BootToTargets | array | true | - | Boot To Targets配置信息 |
| TargetId | number | true | - | 当前Target ID,范围:1-8 |
| TargetEnabled | boolean | true | - | 当前Target使能状态,包括: ● true ● false |
| FCoEWWPN | string | true | - | 当前Target的FCoE全球唯一端口号(弃用) |
| WWPN | string | true | - | 当前Target的全球唯一端口号 |
| BootLun | number | true | - | 当前Target的LUN number,范围: 0-255 |
| BoardId | number | true | - | 指定网络适配器的单板ID |
| BoardIdHex | string | true | - | 指定网络适配器单板ID的十六进制数 |
| ComponentUniqueID | string | true | - | 指定网络适配器的组件唯一标识 说明 BMC30000 3.6.0.1及以上版本支持 |
| PCBVersion | string | true | - | 指定网络适配器的PCB版本 |
| MctpEnabled | boolean | true | - | 指定网络适配器的MCTP开启使能 |
| HotPlugSupported | boolean | true | - | 指定网络适配器是否支持热拔插 |
| HotPlugAttention | boolean | false | - | 知会硬件热拔插信息 |
| OrderlyHotplugCtrlStatus | string | true | - | 通知式热拔插状态 |
| AssociatedResource | string | true | - | 指定网络适配器的资源归属 |
| PartNumber | string | true | - | 指定网络适配器的部件编码 |
| RootBDFs | array | true | - | 指定网络适配器的rootport BDF列表 说明 BMC300 5.12.0及以上版本支持 |
| PreloadPortCount | number | false | - | 指定网络适配器的预加载端口数量 说明 BMC500 5.13.0及以上版本支持 |
| PreloadPortCountAllowableValues | array | true | - | 指定网络适配器可支持的预加载端口数量枚举 说明 BMC500 5.13.0及以上版本支持 |
| VirtualEthernetInterfaces | array | true | - | 指定网络适配器的虚拟网口列表 |
| @odata.id | string | true | - | 指定网络适配器的指定虚拟网口链接 |
| Processors | array | true | - | 指定网络配适器归属的处理器资源 说明 BMC300 5.12.0及以上版本支持 |
| @odata.id | string | true | - | 指定网络适配器归属的处理器资源的访问路径 |
| Controllers | 描述适配器控制器的信息 | true | - | - |
| FirmwarePackageVersion | string | true | - | 指定网络适配器的固件版本 |
| ControllerCapabilities | 描述适配器控制器功能的信息 | true | - | - |
| NetworkPortCount | number | true | - | 指定网络适配器的控制器端口个数 |
| Links | 指定网络适配器的相关单个对象 | true | - | - |
| NetworkPorts | 指定网络适配器的相关网络端口对象集 合 | true | - | - |
| @odata.id | string | true | - | 指定网络适配器的网络功能访问路径 |
| @odata.id | string | true | - | 指定网络适配器的端口访问路径 |
| @odata.id | string | true | - | 指定网络适配器的统计信息路径 |
| @odata.id | string | true | - | 指定网络适配器的网络功能集合装配体访问路径 |
| Actions | array | true | - | 指定网络适配器的操作列表 说明 BMC500 5.13.0.1及以上版本支持 |
| target | string | true | - | 指定网络适配器的可执行操作资源访问路径 |
supported_methods
- GET
- PATCH
- POST
HTTP methods
GET
命令功能
查询网络适配器单个资源信息
命令格式
URL: https://device_ip/redfish/v1/Chassis/chassis_id/NetworkAdapters/networkadapters_id
请求头:
X-Auth-Token: 123456789***********************请求消息体: 无
参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| device_ip | 登录设备的IP地址 | IPv4或IPv6地址 |
| chassis_id | 机箱资源的 IDredfish/v1/Chassis/ chassis_id/Boards/ board_id | ● 针对机架服务器,取值为 1 ● 针对高密服务器,取值为 BladeN(N表示节点槽位 号),例如“Blade1” ● 针对刀片服务器,取值可 以为BladeN(N表示计算 节点槽位号)或SwiN(N 表示交换模块槽位号), 例如“Swi1” ● 针对X6800 V5,X6000 V5,G5500,XA320 V2 服务器,取值还可以为 Enc,表示计算节点所在 的机框资源 ● 针对设备U位信息,取值 可以为UN(N表示设备U 位号),例如"U1" ● 针对机柜资源,取值为 Rack |
| auth_value | 执行该GET请求时,必 须在“Headers”中携 带“X-Auth-Token”值 用于鉴权 | 可通过/redfish/v1/ SessionService/Sessions创 建会话时获得 |
| networkadapters_id | 网络适配器资源的ID | 属性Position和属性 DeviceLocator合并而成 |
使用指南
无
使用实例
请求样例:
http
GET https://device_ip/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2请求头:
X-Auth-Token: 123456789***********************请求消息体:无
响应样例:
json
{
"@odata.context": "/redfish/v1/$metadata#NetworkAdapter.NetworkAdapter",
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2",
"@odata.type": "#NetworkAdapter.v1_0_0.NetworkAdapter",
"Id": "mainboardMEZZ2",
"Name": "mainboardMEZZ2",
"Manufacturer": "Cavium",
"Model": "BCM57810S",
"PartNumber": "0302074895",
"SerialNumber": null,
"Oem": {
"Public": {
"Name": "MZ520",
"DriverName": null,
"DriverVersion": null,
"CardManufacturer": "",
"CardModel": "2*10GE Port CNA Mezzanine Card,PCIE 2.0 X8",
"DeviceLocator": "MEZZ2",
"SlotNumber": 2,
"Position": "mainboard",
"NetworkTechnology": [
"Ethernet",
"iSCSI",
"FCoE"
],
"RootBDF": "0000:ae:00.0",
"FirmwareVersion": null,
"VenderID": "0x14e4",
"DeviceID": "0x168e",
"SubsystemVenderID": "0x19e5",
"SubsystemDeviceID": "0xdf25",
"Configuration": {
"Effective": false,
"PortsConfig": [
{
"PortId": 1,
"SRIOVEnabled": false,
"MultifunctionMode": "NPAR",
"BootEnabled": true,
"BootProtocol": "PXE",
"BootToTarget": false,
"VlanId": 1,
"SANBootEnabled": null,
"LinkConfig": null,
"SerDesConfig": null,
"PFsInfo": [
{
"PFId": 0,
"Protocol": "ETHERNET",
"PermanentAddress": "201611241400",
"iSCSIAddress": "201611241401",
"FCoEFipMACAddress": "201611241401",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "2000201611241401",
"WWNN": "1000201611241401",
"FCoEWWPN": "2000201611241401",
"FCoEWWNN": "1000201611241401",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 2,
"Protocol": "ETHERNET",
"PermanentAddress": "201611241404",
"iSCSIAddress": "201611241405",
"FCoEFipMACAddress": "201611241405",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "2000201611241405",
"WWNN": "1000201611241405",
"FCoEWWPN": "2000201611241405",
"FCoEWWNN": "1000201611241405",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 4,
"Protocol": "ETHERNET",
"PermanentAddress": "201611241408",
"iSCSIAddress": "201611241409",
"FCoEFipMACAddress": "201611241409",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "2000201611241409",
"WWNN": "1000201611241409",
"FCoEWWPN": "2000201611241409",
"FCoEWWNN": "1000201611241409",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 6,
"Protocol": "ETHERNET",
"PermanentAddress": "20161124140C",
"iSCSIAddress": "20161124140D",
"FCoEFipMACAddress": "20161124140D",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "200020161124140D",
"WWNN": "100020161124140D",
"FCoEWWPN": "200020161124140D",
"FCoEWWNN": "100020161124140D",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
}
],
"FCoEBootToTargets": [
{
"TargetId": 1,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 2,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 3,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 4,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 5,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 6,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 7,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 8,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
}
],
"BootToTargets": [
{
"TargetId": 1,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 2,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 3,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 4,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 5,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 6,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 7,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 8,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
}
]
},
{
"PortId": 2,
"SRIOVEnabled": false,
"MultifunctionMode": "NPAR",
"BootEnabled": true,
"BootProtocol": "PXE",
"BootToTarget": false,
"VlanId": 2,
"SANBootEnabled": null,
"LinkConfig": null,
"SerDesConfig": null,
"PFsInfo": [
{
"PFId": 1,
"Protocol": "ETHERNET",
"PermanentAddress": "201611241402",
"iSCSIAddress": "201611241403",
"FCoEFipMACAddress": "201611241403",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "2000201611241403",
"WWNN": "1000201611241403",
"FCoEWWPN": "2000201611241403",
"FCoEWWNN": "1000201611241403",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 3,
"Protocol": "ETHERNET",
"PermanentAddress": "201611241406",
"iSCSIAddress": "201611241407",
"FCoEFipMACAddress": "201611241407",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "2000201611241407",
"WWNN": "1000201611241407",
"FCoEWWPN": "2000201611241407",
"FCoEWWNN": "1000201611241407",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 5,
"Protocol": "ETHERNET",
"PermanentAddress": "20161124140A",
"iSCSIAddress": "20161124140B",
"FCoEFipMACAddress": "20161124140B",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "200020161124140B",
"WWNN": "100020161124140B",
"FCoEWWPN": "200020161124140B",
"FCoEWWNN": "100020161124140B",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 7,
"Protocol": "ETHERNET",
"PermanentAddress": "20161124140E",
"iSCSIAddress": "20161124140F",
"FCoEFipMACAddress": "20161124140F",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "200020161124140F",
"WWNN": "100020161124140F",
"FCoEWWPN": "200020161124140F",
"FCoEWWNN": "100020161124140F",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
}
],
"FCoEBootToTargets": [
{
"TargetId": 1,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 2,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 3,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 4,
"TargetEnable": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 5,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 6,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 7,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 8,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
}
],
"BootToTargets": [
{
"TargetId": 1,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 2,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 3,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 4,
"TargetEnable": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 5,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 6,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 7,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 8,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
}
]
},
{
"PortId": 3,
"SRIOVEnabled": false,
"MultifunctionMode": "NPAR",
"BootEnabled": true,
"BootProtocol": "PXE",
"BootToTarget": false,
"VlanId": 3,
"SANBootEnabled": null,
"LinkConfig": null,
"SerDesConfig": null,
"PFsInfo": [
{
"PFId": 0,
"Protocol": "ETHERNET",
"PermanentAddress": "201611241410",
"iSCSIAddress": "201611241411",
"FCoEFipMACAddress": "201611241411",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "2000201611241411",
"WWNN": "1000201611241411",
"FCoEWWPN": "2000201611241411",
"FCoEWWNN": "1000201611241411",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 2,
"Protocol": "ETHERNET",
"PermanentAddress": "201611241414",
"iSCSIAddress": "201611241415",
"FCoEFipMACAddress": "201611241415",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "2000201611241415",
"WWNN": "1000201611241415",
"FCoEWWPN": "2000201611241415",
"FCoEWWNN": "1000201611241415",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 4,
"Protocol": "ETHERNET",
"PermanentAddress": "201611241418",
"iSCSIAddress": "201611241419",
"FCoEFipMACAddress": "201611241419",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "2000201611241419",
"WWNN": "1000201611241419",
"FCoEWWPN": "2000201611241419",
"FCoEWWNN": "1000201611241419",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 6,
"Protocol": "ETHERNET",
"PermanentAddress": "20161124141C",
"iSCSIAddress": "20161124141D",
"FCoEFipMACAddress": "20161124141D",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "200020161124141D",
"WWNN": "100020161124141D",
"FCoEWWPN": "200020161124141D",
"FCoEWWNN": "100020161124141D",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
}
],
"FCoEBootTargets": [
{
"TargetId": 1,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 2,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 3,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 4,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 5,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 6,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 7,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 8,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
}
],
"BootTargets": [
{
"TargetId": 1,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 2,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 3,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 4,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 5,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 6,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 7,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 8,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
}
]
},
{
"PortId": 4,
"SRIOVEnabled": false,
"MultifunctionMode": "NPAR",
"BootEnabled": true,
"BootProtocol": "PXE",
"BootToTarget": false,
"VlanId": 4,
"SANBootEnabled": null,
"LinkConfig": null,
"SerDesConfig": null,
"PFsInfo": [
{
"PFId": 1,
"Protocol": "ETHERNET",
"PermanentAddress": "201611241412",
"iSCSIAddress": "201611241413",
"FCoEFipMACAddress": "201611241413",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "2000201611241413",
"WWNN": "1000201611241413",
"FCoEWWPN": "2000201611241413",
"FCoEWWNN": "1000201611241413",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 3,
"Protocol": "ETHERNET",
"PermanentAddress": "201611241416",
"iSCSIAddress": "201611241417",
"FCoEFipMACAddress": "201611241417",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "2000201611241417",
"WWNN": "1000201611241417",
"FCoEWWPN": "2000201611241417",
"FCoEWWNN": "1000201611241417",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 5,
"Protocol": "ETHERNET",
"PermanentAddress": "20161124141A",
"iSCSIAddress": "20161124141B",
"FCoEFipMACAddress": "20161124141B",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "200020161124141B",
"WWNN": "100020161124141B",
"FCoEWWPN": "200020161124141B",
"FCoEWWNN": "100020161124141B",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 7,
"Protocol": "ETHERNET",
"PermanentAddress": "20161124141E",
"iSCSIAddress": "20161124141F",
"FCoEFipMACAddress": "20161124141F",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "200020161124141F",
"WWNN": "100020161124141F",
"FCoEWWPN": "200020161124141F",
"FCoEWWNN": "100020161124141F",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
}
],
"FCoEBootTargets": [
{
"TargetId": 1,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 2,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 3,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 4,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 5,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 6,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 7,
"TargetEnable": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 8,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
}
],
"BootTargets": [
{
"TargetId": 1,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 2,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 3,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 4,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 5,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 6,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 7,
"TargetEnable": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 8,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
}
]
}
]
},
"BoardId": 60,
"BoardIdHex": "0x003c",
"ComponentUniqueID": null,
"PCBVersion": ".B",
"MctpEnabled": false,
"HotPlugSupported": false,
"HotPlugAttention": false,
"OrderlyHotplugCtrlStatus": "Unknown",
"AssociatedResource": "CPU1",
"PartNumber": "06310351",
"RootBDFs": [
"0000:1c:00.0",
"0000:60:00.0"
],
"PreloadPortCount": 2,
"PreloadPortCountAllowableValues": [],
"VirtualEthernetInterfaces": [
{
"@odata.id": "/redfish/v1/Systems/1/EthernetInterfaces/sf0"
}
]
}
},
"Links": {
"Oem": {
"Public": {
"Processors": [
{
"@odata.id": "/redfish/v1/Systems/1/Processors/1"
},
{
"@odata.id": "/redfish/v1/Systems/1/Processors/0"
}
]
}
}
},
"Controllers": [
{
"FirmwarePackageVersion": null,
"ControllerCapabilities": {
"NetworkPortCount": 2
},
"Links": {
"NetworkPorts@odata.count": 4,
"NetworkPorts": [
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/NetworkPorts/1"
},
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/NetworkPorts/2"
},
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/NetworkPorts/3"
},
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/NetworkPorts/4"
}
],
"Ports": [
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/Ports/1"
},
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/Ports/2"
},
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/Ports/3"
},
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/Ports/4"
}
],
"NetworkDeviceFunctions": [
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/NetworkDeviceFunctions/1"
},
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/NetworkDeviceFunctions/2"
},
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/NetworkDeviceFunctions/3"
},
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/NetworkDeviceFunctions/4"
}
]
}
}
],
"NetworkPorts": {
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/NetworkPorts"
},
"NetworkDeviceFunctions": {
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/mainboardMEZZ2/NetworkDeviceFunctions"
},
"Ports": {
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/mainboardMEZZ2/Ports"
},
"Metrics": {
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/mainboardMEZZ2/Metrics"
},
"Assembly": {
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/mainboardMEZZ2/Assembly"
},
"Status": {
"State": "Enabled",
"Oem": {
"Public": {
"Severity": "Informational"
}
},
"Health": "OK"
},
"Actions": {
"#NetworkAdapter.Reset": {
"target": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/Actions/NetworkAdapter.Reset",
"@Redfish.ActionInfo": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/ResetActionInfo"
}
}
}响应码:200
PATCH
命令功能
修改网络适配器单个资源信息
命令格式
URL: https://device_ip/redfish/v1/Chassis/chassis_id/NetworkAdapters/networkadapters_id
请求头:
X-Auth-Token: 123456789***********************
Content-Type: header_type
If-Match: ifmatch_value请求消息体:
json
{
"Oem": {
"Public": {
"HotPlugAttention": HotPlugAttention,
"PreloadPortCount": PreloadPortCount
}
}
}请求头参数说明
参见 请求头参数说明
请求体参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| chassis_id | 机箱资源的ID | ● 针对机架服务 器,取值为1 ● 针对高密服务 器,取值为 BladeN(N表 示节点槽位 号),例如 “Blade1” ● 针对刀片服务 器,取值可以 为BladeN(N 表示计算节点 槽位号)或 SwiN(N表示 交换模块槽位 号),例如 “Swi1” ● 针对X6800 V5,X6000 V5,G5500, XA320 V2服 务器,取值还 可以为Enc, 表示计算节点 所在的机框资 源 ● 针对设备U位 信息,取值可 以为UN(N表 示设备U位 号),例如 "U1" ● 针对机柜资 源,取值为 Rack |
| networkadapters_id | 网络适配器资 源的ID | 属性Position和属 性DeviceLocator 合并而成 |
| HotPlugAttention | 知会硬件热拔 插信息 | 包括: ● true ● false |
| PreloadPortCountCount | 指定网络适配 器的预加载端 口数量 | 可通过/ redfish/v1/ Chassis/ chassis_id/ NetworkAdapte rs/ netorkadapters _id发起GET操作 获取属性 PreloadPortCoun tAllowableValue s获取指定网络适 配器可支持的预 加载端口数量枚 举 |
使用指南
BMC500 5.13.0.1及以上版本支持PreloadPortCount参数
使用实例
请求样例:
http
PATCH https://device_ip/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2请求头:
X-Auth-Token: 123456789***********************请求消息体:
json
{
"Oem": {
"Public": {
"HotPlugAttention": false,
"PreloadPortCount": 2
}
}
}响应样例:
json
{
"@odata.context": "/redfish/v1/$metadata#NetworkAdapter.NetworkAdapter",
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2",
"@odata.type": "#NetworkAdapter.v1_0_0.NetworkAdapter",
"Id": "mainboardMEZZ2",
"Name": "mainboardMEZZ2",
"Manufacturer": "Cavium",
"Model": "BCM57810S",
"PartNumber": "0302074895",
"SerialNumber": null,
"Oem": {
"Public": {
"Name": "MZ520",
"DriverName": null,
"DriverVersion": null,
"CardManufacturer": "",
"CardModel": "2*10GE Port CNA Mezzanine Card,PCIE 2.0 X8",
"DeviceLocator": "MEZZ2",
"SlotNumber": 2,
"Position": "mainboard",
"NetworkTechnology": [
"Ethernet",
"iSCSI",
"FCoE"
],
"RootBDF": "0000:ae:00.0",
"FirmwareVersion": null,
"VenderID": "0x14e4",
"DeviceID": "0x168e",
"SubsystemVenderID": "0x19e5",
"SubsystemDeviceID": "0xdf25",
"Configuration": {
"Effective": false,
"PortsConfig": [
{
"PortId": 1,
"SRIOVEnabled": false,
"MultifunctionMode": "NPAR",
"BootEnabled": true,
"BootProtocol": "PXE",
"BootToTarget": false,
"VlanId": 1,
"SANBootEnabled": null,
"LinkConfig": null,
"SerDesConfig": null,
"PFsInfo": [
{
"PFId": 0,
"Protocol": "ETHERNET",
"PermanentAddress": "201611241400",
"iSCSIAddress": "201611241401",
"FCoEFipMACAddress": "201611241401",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "2000201611241401",
"WWNN": "1000201611241401",
"FCoEWWPN": "2000201611241401",
"FCoEWWNN": "1000201611241401",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 2,
"Protocol": "ETHERNET",
"PermanentAddress": "201611241404",
"iSCSIAddress": "201611241405",
"FCoEFipMACAddress": "201611241405",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "2000201611241405",
"WWNN": "1000201611241405",
"FCoEWWPN": "2000201611241405",
"FCoEWWNN": "1000201611241405",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 4,
"Protocol": "ETHERNET",
"PermanentAddress": "201611241408",
"iSCSIAddress": "201611241409",
"FCoEFipMACAddress": "201611241409",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "2000201611241409",
"WWNN": "1000201611241409",
"FCoEWWPN": "2000201611241409",
"FCoEWWNN": "1000201611241409",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 6,
"Protocol": "ETHERNET",
"PermanentAddress": "20161124140C",
"iSCSIAddress": "20161124140D",
"FCoEFipMACAddress": "20161124140D",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "200020161124140D",
"WWNN": "100020161124140D",
"FCoEWWPN": "200020161124140D",
"FCoEWWNN": "100020161124140D",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
}
],
"FCoEBootToTargets": [
{
"TargetId": 1,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 2,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 3,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 4,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 5,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 6,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 7,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 8,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
}
],
"BootToTargets": [
{
"TargetId": 1,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 2,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 3,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 4,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 5,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 6,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 7,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 8,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
}
]
},
{
"PortId": 2,
"SRIOVEnabled": false,
"MultifunctionMode": "NPAR",
"BootEnabled": true,
"BootProtocol": "PXE",
"BootToTarget": false,
"VlanId": 2,
"SANBootEnabled": null,
"LinkConfig": null,
"SerDesConfig": null,
"PFsInfo": [
{
"PFId": 1,
"Protocol": "ETHERNET",
"PermanentAddress": "201611241402",
"iSCSIAddress": "201611241403",
"FCoEFipMACAddress": "201611241403",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "2000201611241403",
"WWNN": "1000201611241403",
"FCoEWWPN": "2000201611241403",
"FCoEWWNN": "1000201611241403",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 3,
"Protocol": "ETHERNET",
"PermanentAddress": "201611241406",
"iSCSIAddress": "201611241407",
"FCoEFipMACAddress": "201611241407",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "2000201611241407",
"WWNN": "1000201611241407",
"FCoEWWPN": "2000201611241407",
"FCoEWWNN": "1000201611241407",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 5,
"Protocol": "ETHERNET",
"PermanentAddress": "20161124140A",
"iSCSIAddress": "20161124140B",
"FCoEFipMACAddress": "20161124140B",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "200020161124140B",
"WWNN": "100020161124140B",
"FCoEWWPN": "200020161124140B",
"FCoEWWNN": "100020161124140B",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 7,
"Protocol": "ETHERNET",
"PermanentAddress": "20161124140E",
"iSCSIAddress": "20161124140F",
"FCoEFipMACAddress": "20161124140F",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "200020161124140F",
"WWNN": "100020161124140F",
"FCoEWWPN": "200020161124140F",
"FCoEWWNN": "100020161124140F",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
}
],
"FCoEBootToTargets": [
{
"TargetId": 1,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 2,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 3,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 4,
"TargetEnable": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 5,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 6,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 7,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 8,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
}
],
"BootToTargets": [
{
"TargetId": 1,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 2,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 3,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 4,
"TargetEnable": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 5,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 6,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 7,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 8,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
}
]
},
{
"PortId": 3,
"SRIOVEnabled": false,
"MultifunctionMode": "NPAR",
"BootEnabled": true,
"BootProtocol": "PXE",
"BootToTarget": false,
"VlanId": 3,
"SANBootEnabled": null,
"LinkConfig": null,
"SerDesConfig": null,
"PFsInfo": [
{
"PFId": 0,
"Protocol": "ETHERNET",
"PermanentAddress": "201611241410",
"iSCSIAddress": "201611241411",
"FCoEFipMACAddress": "201611241411",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "2000201611241411",
"WWNN": "1000201611241411",
"FCoEWWPN": "2000201611241411",
"FCoEWWNN": "1000201611241411",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 2,
"Protocol": "ETHERNET",
"PermanentAddress": "201611241414",
"iSCSIAddress": "201611241415",
"FCoEFipMACAddress": "201611241415",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "2000201611241415",
"WWNN": "1000201611241415",
"FCoEWWPN": "2000201611241415",
"FCoEWWNN": "1000201611241415",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 4,
"Protocol": "ETHERNET",
"PermanentAddress": "201611241418",
"iSCSIAddress": "201611241419",
"FCoEFipMACAddress": "201611241419",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "2000201611241419",
"WWNN": "1000201611241419",
"FCoEWWPN": "2000201611241419",
"FCoEWWNN": "1000201611241419",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 6,
"Protocol": "ETHERNET",
"PermanentAddress": "20161124141C",
"iSCSIAddress": "20161124141D",
"FCoEFipMACAddress": "20161124141D",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "200020161124141D",
"WWNN": "100020161124141D",
"FCoEWWPN": "200020161124141D",
"FCoEWWNN": "100020161124141D",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
}
],
"FCoEBootTargets": [
{
"TargetId": 1,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 2,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 3,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 4,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 5,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 6,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 7,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 8,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
}
],
"BootTargets": [
{
"TargetId": 1,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 2,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 3,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 4,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 5,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 6,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 7,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 8,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
}
]
},
{
"PortId": 4,
"SRIOVEnabled": false,
"MultifunctionMode": "NPAR",
"BootEnabled": true,
"BootProtocol": "PXE",
"BootToTarget": false,
"VlanId": 4,
"SANBootEnabled": null,
"LinkConfig": null,
"SerDesConfig": null,
"PFsInfo": [
{
"PFId": 1,
"Protocol": "ETHERNET",
"PermanentAddress": "201611241412",
"iSCSIAddress": "201611241413",
"FCoEFipMACAddress": "201611241413",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "2000201611241413",
"WWNN": "1000201611241413",
"FCoEWWPN": "2000201611241413",
"FCoEWWNN": "1000201611241413",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 3,
"Protocol": "ETHERNET",
"PermanentAddress": "201611241416",
"iSCSIAddress": "201611241417",
"FCoEFipMACAddress": "201611241417",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "2000201611241417",
"WWNN": "1000201611241417",
"FCoEWWPN": "2000201611241417",
"FCoEWWNN": "1000201611241417",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 5,
"Protocol": "ETHERNET",
"PermanentAddress": "20161124141A",
"iSCSIAddress": "20161124141B",
"FCoEFipMACAddress": "20161124141B",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "200020161124141B",
"WWNN": "100020161124141B",
"FCoEWWPN": "200020161124141B",
"FCoEWWNN": "100020161124141B",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
},
{
"PFId": 7,
"Protocol": "ETHERNET",
"PermanentAddress": "20161124141E",
"iSCSIAddress": "20161124141F",
"FCoEFipMACAddress": "20161124141F",
"MinBandwidth": 25,
"MaxBandwidth": 100,
"WWPN": "200020161124141F",
"WWNN": "100020161124141F",
"FCoEWWPN": "200020161124141F",
"FCoEWWNN": "100020161124141F",
"VlanMode": null,
"VlanId": null,
"VlanPriority": null,
"VlanTrunkRange": null
}
],
"FCoEBootTargets": [
{
"TargetId": 1,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 2,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 3,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 4,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 5,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 6,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 7,
"TargetEnable": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 8,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
}
],
"BootTargets": [
{
"TargetId": 1,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 2,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 3,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 4,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 5,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 6,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 7,
"TargetEnable": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
},
{
"TargetId": 8,
"TargetEnabled": true,
"WWPN": "2000001018123457",
"FCoEWWPN": "2000001018123457",
"BootLun": 255
}
]
}
]
},
"BoardId": 60,
"BoardIdHex": "0x003c",
"ComponentUniqueID": null,
"PCBVersion": ".B",
"MctpEnabled": false,
"HotPlugSupported": false,
"HotPlugAttention": false,
"OrderlyHotplugCtrlStatus": "Unknown",
"AssociatedResource": "CPU1",
"PartNumber": "06310351",
"RootBDFs": [
"0000:1c:00.0",
"0000:60:00.0"
],
"PreloadPortCount": 2,
"PreloadPortCountAllowableValues": [],
"VirtualEthernetInterfaces": [
{
"@odata.id": "/redfish/v1/Systems/1/EthernetInterfaces/sf0"
}
]
}
},
"Links": {
"Oem": {
"Public": {
"Processors": [
{
"@odata.id": "/redfish/v1/Systems/1/Processors/1"
},
{
"@odata.id": "/redfish/v1/Systems/1/Processors/0"
}
]
}
}
},
"Controllers": [
{
"FirmwarePackageVersion": null,
"ControllerCapabilities": {
"NetworkPortCount": 2
},
"Links": {
"NetworkPorts@odata.count": 4,
"NetworkPorts": [
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/NetworkPorts/1"
},
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/NetworkPorts/2"
},
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/NetworkPorts/3"
},
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/NetworkPorts/4"
}
],
"Ports": [
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/Ports/1"
},
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/Ports/2"
},
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/Ports/3"
},
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/Ports/4"
}
],
"NetworkDeviceFunctions": [
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/NetworkDeviceFunctions/1"
},
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/NetworkDeviceFunctions/2"
},
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/NetworkDeviceFunctions/3"
},
{
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/NetworkDeviceFunctions/4"
}
]
}
}
],
"NetworkPorts": {
"@odata.id": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/NetworkPorts"
},
"NetworkDeviceFunctions": {
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/mainboardMEZZ2/NetworkDeviceFunctions"
},
"Ports": {
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/mainboardMEZZ2/Ports"
},
"Metrics": {
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/mainboardMEZZ2/Metrics"
},
"Assembly": {
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/mainboardMEZZ2/Assembly"
},
"Status": {
"State": "Enabled",
"Oem": {
"Public": {
"Severity": "Informational"
}
},
"Health": "OK"
},
"Actions": {
"#NetworkAdapter.Reset": {
"target": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/Actions/NetworkAdapter.Reset",
"@Redfish.ActionInfo": "/redfish/v1/Chassis/Blade15/NetworkAdapters/mainboardMEZZ2/ResetActionInfo"
}
}
}响应码:200
POST (ACTION)
Reset
命令功能
复位或上下电网络适配器
命令格式
URL: https://device_ip/redfish/v1/Chassis/chassis_id/NetworkAdapters/networkadapters_id/Actions/NetworkAdapter.Reset
请求头:
X-Auth-Token: 123456789***********************
Content-Type: header_type请求消息体:
json
{
"ResetType": reset_type
}请求头参数说明
参见 请求头参数说明
请求体参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| chassis_id | 机箱资源的ID | ● 针对机架服务器,取值为 1 ● 针对高密服务器,取值为 BladeN(N表示节点槽位 号),例如“Blade1” ● 针对刀片服务器,取值可 以为BladeN(N表示计算 节点槽位号)或SwiN(N 表示交换模块槽位号), 例如“Swi1” ● 针对X6800 V5,X6000 V5,G5500,XA320 V2 服务器,取值还可以为 Enc,表示计算节点所在 的机框资源 ● 针对设备U位信息,取值 可以为UN(N表示设备U 位号),例如"U1" ● 针对机柜资源,取值为 Rack |
| reset_type | 复位或上下电的操作类 型 | 支持的取值如下: ● GracefulRestart(优雅复 位) ● ForceOff(强制下电) ● ForceOn(强制上电) |
使用指南
BMC500 5.13.0.1及以上版本支持
使用实例
请求样例:
http
POST https://device_ip/redfish/v1/Chassis/1/NetworkAdapters/UBEthernetAdapter1/Actions/NetworkAdapter.Reset请求头:
X-Auth-Token: 123456789***********************
Content-Type: application/json请求消息体:
json
{
"ResetType": "GracefulRestart"
}响应样例:
json
{
"error": {
"code": "Base.1.0.GeneralError",
"message": "A general error has occurred. See ExtendedInfo for more information.",
"@Message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_0_0.Message",
"MessageId": "Base.1.0.Success",
"RelatedProperties": [],
"Message": "Successfully Completed Request",
"MessageArgs": [],
"Severity": "OK",
"Resolution": "None"
}
]
}
}响应码:200