代码仓
中
Get HBA Card Configuration
更新时间: 2025/06/26
在AtomGit上查看源码

08h-查询HBA卡配置(Get-HBA-Card-Configuration) ​

修订记录 ​

openUBMC版本号修订日期修订内容
25.062025/06/26初稿,新增命令详情

基本信息 ​

功能说明 ​

查询HBA卡的配置信息。

权限 ​

命令信息 ​

请求信息 ​

字节顺序域取值说明
NetFn30h
CMD92h
1:3Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。
4Sub command,子命令=08h
5Configuration Selector
6Set Selector: Selects a given set of Configurations under a given Configuration selector value. 00h if parameter doesn't use a Set Selector
7Block Selector (00h if parameter does not require a block number)
8Command Selector (00h if parameter does not require a command number, 参见 表4 )

响应信息 ​

字节顺序域取值说明
1Completion Code
Generic codes, plus following command-specific completion code(s):
80h=parameter not supported
2:4Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。
5Configuration data

命令样例 ​

配置HBA卡 ​

请求:

ipmicmd -k "0f 00 30 92 db 07 00 08 02 00 00 00" smi 0

响应:

0f 31 00 92 00 db 07 00 *

本例假定命令成功(完成码 00)。Configuration Selector 02 查询 HBA 卡数量;* 表示实际返回的一个数量字节。

附表1 HBA卡配置参数 ​

ConfigurationConfiguration 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 Number2

附表2 HBA Card Type ​

#Card Type
08G FC HBA card
1GE HBA card
210GE HBA card
3RAID card

附表3 Support Attribute ​

AttributeConfig bitvalue
Card Serdesbit01
Card Speedbit11
SAN bootbit21
PFbit31
FC FCoE Switchbit41
Reservebit5-7*

附表4 HBA Card Configuration ​

Cmd SelectorConfiguration datavalue
Card Serdesdata1-6 -Serdes Parameter0
Card Speeddata1 -Card Speed1
SAN bootdata1 -Boot for SAN (Enable/Disable)2
PFdata1 -PF (Enable/Disable)3
FC FCoE Switch待定4

返回到索引 ​