Get HBA Card Configuration
更新时间: 2026/08/06
在Gitcode上查看源码Get HBA Card Configuration
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
Shows the configuration information of HBAs.
Privilege
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | 30h |
| CMD | 92h |
| 1:3 | Manufacturer 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. |
| 4 | Sub command, sub command =08h |
| 5 | Configuration Selector |
| 6 | Set Selector: Selects a given set of Configurations under a given Configuration selector value. 00h if parameter doesn't use a Set Selector |
| 7 | Block Selector (00h if parameter does not require a block number) |
| 8 | Command Selector (For details about 00h if parameter does not require a command number,, see Table 4.) |
Response Information
| Byte | Data Field |
|---|---|
| 1 | Completion Code Generic codes, plus following command-specific completion code(s): 80h=parameter not supported |
| 2:4 | Manufacturer 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 | Configuration data |
Reference
Table 1 HBA configuration parameters
| Configuration | Configuration data | No. (Decimal) |
|---|---|---|
| Card Properties (Read only) | data1 [7:1]-Reserved [ 1 ]-Present 0 HBA Card is not present 1 HBA Card is present [ 0 ]-Configurable 0 HBA card can not be configured. 1 HBA card can be configured. data2 -Card type data3 -Ports Number data4 -Bus Number (Root Port) data5 -Device Number(Root Port) data6 -Function Number(Root Port) data7 - Support Attribute (See the Table 3 table.) data8:16 -Reserve | 0 |
| Port Configuration (Read only) | data1 -Card Selector data2 -Port Selector data3 -Command Number data4:n -Port Configuration | 1 |
| Card Number (Read only) | data1 -Card Number | 2 |
Table 2 HBA Card Type
| # | Card Type |
|---|---|
| 0 | 8G FC HBA card |
| 1 | GE HBA card |
| 2 | 10GE HBA card |
| 3 | RAID card |
Table 3 Support Attribute
| Attribute | Config bit | value |
|---|---|---|
| Card Serdes | bit0 | 1 |
| Card Speed | bit1 | 1 |
| SAN boot | bit2 | 1 |
| PF | bit3 | 1 |
| FC FCoE Switch | bit4 | 1 |
| Reserve | bit5-7 | * |
Table 4 HBA Card Configuration
| Cmd Selector | Configuration data | value |
|---|---|---|
| Card Serdes | data1-6 -Serdes Parameter | 0 |
| Card Speed | data1 -Card Speed | 1 |
| SAN boot | data1 -Boot for SAN (Enable/Disable) | 2 |
| PF | data1 -PF (Enable/Disable) | 3 |
| FC FCoE Switch | TBD | 4 |
Command Example
Configure the HBA.
Request:
bash
ipmicmd -k "0f 00 MM NN" smi 0Response:
text
0f MM NN