Get HBA Card Configuration
更新时间: 2025/06/26
在Gitcode上查看源码08h-查询HBA卡配置(Get-HBA-Card-Configuration)
修订记录
| openUBMC版本号 | 修订日期 | 修订内容 |
|---|---|---|
| 25.06 | 2025/06/26 | 初稿,新增命令详情 |
基本信息
功能说明
查询HBA卡的配置信息。
权限
命令信息
请求信息
| 字节顺序 | 域取值说明 |
|---|---|
| NetFn | 30h |
| CMD | 92h |
| 1:3 | Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。 |
| 4 | 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 (00h if parameter does not require a command number, 参见 表4 ) |
响应信息
| 字节顺序 | 域取值说明 |
|---|---|
| 1 | Completion Code Generic codes, plus following command-specific completion code(s): 80h=parameter not supported |
| 2:4 | Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。 |
| 5 | Configuration data |
命令样例
配置HBA卡
请求:
ipmicmd -k "0f 00 MM NN" smi 0响应:
0f MM NN附表1 HBA卡配置参数
| Configuration | Configuration data | #(10进制) |
|---|---|---|
| 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(参见表 表3 ) 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 |
附表2 HBA Card Type
| # | Card Type |
|---|---|
| 0 | 8G FC HBA card |
| 1 | GE HBA card |
| 2 | 10GE HBA card |
| 3 | RAID card |
附表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 | * |
附表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 | 待定 | 4 |