Get BusinessPort's BDF and MAC Info
更新时间: 2026/08/06
在Gitcode上查看源码

Get BusinessPort's BDF and MAC Info

Change History

openUBMC VersionRevision DateDescription
25.062025/06/26Initial draft: add command details

Basic Information

Function Description

Obtains the BDF and MAC address of a BusinessPort. (Only Ethernet network ports are supported. FC/IB network ports are not supported.)

Privilege

ReadOnly

Command Information

Request Information

ByteData Field
NetFn30h
CMD93h
1: 3Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h.
4Sub command, sub command=5eh
5Reserved extended field. Set it to 0.
6Query the type of the network port.
0: Physical port
7: 8Query parameter
0000h: Obtain the number of network ports.
Other values: Obtain information about a specified network port. The value indicates the index number of the business port.

Response Information

ByteData Field
1Completion Code
2: 4Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h.
5: 6Return type:
Query parameter value 0000h indicates the total number of network ports.Other query parameter values indicate the index of the current network port.
7Response body length: M
8: M+8datax: y, in which x specifies the start byte and y indicates the number of bytes.
data1: 1-length of the NIC product name L1
data2: L1-NIC product name
data(2+L1): 1-NIC silkscreen length L2
data(3+L1): L2-NIC silkscreen
data(3+L1+L2): 1-root BDF length of the NIC (L3)
data(4+L1+L2): L3-RootBDF of the NIC
data(4+L1+L2+L3): 1-length of the network port name L4
data(5+L1+L2+L3): L4-Network port name
data(5+L1+L2+L3+L4): 1-BDF number length L5
data(6+L1+L2+L3+L4): L5-BDF number
data(6+L1+L2+L3+L4+L5): 1-MAC address length L6
data(7+L1+L2+L3+L4+L5): L6-MAC address

Command Example

Obtain the number of physical NICs.

Request:

bash
ipmicmd -k "0f 00 30 93 DB 07 00 5E 00 00 00 00" smi 0

Response:

text
0f 31 00 93 00 db 07 00 08 00

Back to Index