Read MAC Address
更新时间: 2026/08/06
在Gitcode上查看源码

Read MAC Address

Change History

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

Basic Information

Function Description

Obtains the MAC address of the mainboard.

Privilege

BasicSetting

Command Information

Request Information

ByteData Field
NetFn30h
CMD90h
1Sub command, subcommand = 01h
2FRU Device ID
3MAC ID
NOTE: If the request data contains the fourth byte, the MAC ID indicates the sequence number of the interface of the same type. That is, the MAC ID of each type of interface is numbered from 1.If the request data does not contain the fourth byte, the MAC ID indicates the sequence number of multiple MAC addresses on the same FRU. That is, different interface types are numbered in a unified manner.
(4)Interface Type
1=Base Interface
2=Fabric Interface
3=Front panel network port
4: external expansion network port; 5: WWNNN
6=WWPN
16=Update Channel Interface
Others reserved
NOTE: This byte is optional. When this byte exists, the MACID of the third byte is the sequence number of the same interface type.

Response Information

ByteData Field
1Completion Code
2FRU Device ID
3MAC ID
NOTE: If the request data does not contain the fourth byte, MACID indicates the sequence number of multiple MAC addresses on the same FRU. (Network ports of different types are numbered in a unified manner. For example, 1 and 2 may be Base network ports, 3 and 4 may be Fabric network ports, and 5 indicates WWNNs and 6 indicates WWPNs.)If the request data has the fourth byte, MACID indicates the sequence number of the same interface type.
4Interface Type
1=Base Interface
2=Fabric Interface
3=Front panel network port
4=External expansion network port
5=WWNN
6=WWPN
16=Update Channel Interface
Others reserved
(5)Next MAC ID: indicates the next MAC ID of the same interface. If there is no next MAC ID, this field is set to 0XFF.
NOTE: This byte exists only when the request data contains the fourth byte.
MAC
5:10
Or 6:11
MAC Address: 6 bytes (EUI-48 specification)
NOTE: When the Next MAC ID exists, the value range of this field is (6:11).
MAC
5:12
Or
6:13
MAC address: 8 bytes (EUI-64 specification)
NOTE: If the Next MAC ID exists, the value of this field ranges from 6 to 13.
WWNN & WWPN
5:12
Or
6:13
WWN (8 Bytes)
NOTE: If the Next MAC ID exists, the value of this field ranges from 6 to 13.

Command Example

Read the MAC address of the mainboard.

Request:

bash
ipmicmd -k "0f 00 30 90 01 00 00 01" smi 0

Response:

text
0f 31 00 90 00 00 00 01 01 00 01 09 c7 47 fc

Back to Index