Get IPMC Configuration
更新时间: 2025/06/26
在Gitcode上查看源码

06h-获取IPMC配置参数(Get-IPMC-Configuration)

修订记录

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

基本信息

功能说明

获取IPMC配置参数。

权限

ReadOnly

命令信息

请求信息

字节顺序域取值说明
NetFn30h
CMD93h
1:3Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。
4Sub command,子命令=06h
5Parameter Selector,见 表1 。
6Read Offset,读取的数据偏移,从0开始。
7Length,读取长度。

响应信息

字节顺序域取值说明
1Completion Code
2:4Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。
5End of List,表示当前数据是否结束。当参数数据比较长的时候,可能需要分多次读取,通过此字段可以判断数据是否读完。
[7:1]:reserved.
[0]:End of list
0=last data
1=middle data
6:NData,实际返回的数据可能小于等于Read length

命令样例

获取IPMC Host name

请求:

ipmicmd -k "0f 00 30 93 db 07 00 06 0x01 0x00 0x10" smi 0

响应:

0f 31 00 93 00 db 07 00 00 68 75 61 77 65 69

附表1 IPMC配置

ParameterParameter Data#(10进制)
Host namedata1:N-BMC host name
Maximum of 128 bytes, ended with null if less than 128 bytes.
1
LDAP hostdata1:N-URI
Maximum of 128 bytes, ended with null if less than 128 bytes.
2
Domain Namedata1:N-Domain name
Max 128 Bytes, End by null if less than 128 Bytes.
3
DNS Serverdata1:N-DNS Server IP/host
Max 128 Bytes, End by null if less than 128 Bytes.
4
LDAP user basedata1:N-LDAP user base
Maximum of 128 bytes, ended with null if less than 128 bytes.
5
LDAP enabledata1-disable/enable LDAP
0-disable
1-enable
6
2nd DNS Serverdata1:N-DNS Server IP/host
Max 128 Bytes, End by null if less than 128 Bytes.
7
dns bind eth portdata1-DNS bind eth port
0-eth0
1-eth1
12
NCSI bind port- data1-NCSI bind port
0-PORT1
1-PORT2
2-PORT3
3-PORT4
配置双端口网卡时,取值范围为0和1;配置四端口网卡时,取值范围为0、1、2和3。- data 2
0-LOM NIC
1-standard PCIE NIC
13
iMana resource Serverdata1:N -iMana resource Server IP
Max 128 Bytes, End by null if less than 128 Bytes.
14
dns sourcedata1-ddns static/DHCP
0-static
1-DHCP
15
dns bind IP protocoldata1-dns IP protocol
0 IPv4
1 IPv6
16
NTP enabledata1-disable/enable NTP
0-disable
1-enable
17
Primary NTP Serverdata1:N-NTP Server IP/host
Max 255 Bytes, End by null if less than 255 Bytes.
18
Secondary NTP Serverdata1:N-NTP Server IP/host
Max 255 Bytes, End by null if less than 255 Bytes.
19
NTP Source- data1-NTP static/DHCP
0-static
1-DHCP
20
NTP bind IP protocol- data1-NTP IP protocol
0-IPv4
1-IPv6
21
Adaptive Port List- data1-网口类型
0-板载网卡
1-标准PCIE网卡
2-专用管理网口- data2:5-参与自适应的端口
每一bit含义表示port是否加入自适应列表,0表示不加入,1表示加入。
data2的bit0表示port1,data2的bit1表示port2,依次类推。
……
当同时查询或设置板载网卡、标准PCIE网卡和专用管理网口中任意两个时,data6为端口类型,data7~data10为参与自适应端口。
当同时查询或设置板载网卡、标准PCIE网卡和专用管理网口时,则data6为端口类型,data7~data10为参与自适应端口,且data11为端口类型,data12~data15为参与自适应端口。
22
LDAP CERT statusdata1-LDAP CERT status
0-Disable
1-Enable
23
WEB httphostdata1:N-WEB httphost
Max 255 Bytes, End by null if less than 255 Bytes.
24
NCSI RX channel# 设置NCSI的RX channel使能,有且仅支持2个端口使能RX channel配置,data3不等于data4。
设置NCSI的RX channel去使能,则data2、data3、data4为0xff。
查询LACP时,如果data1为disable,则data2、data3、data4为0xff。
设置和查询时Offset必须为0。- data1-NCSI的RX channel使能标志
0-disable
1-enable- data2-端口类型
0-板载网卡
1-标准PCIE网卡
3-板载网卡2(仅V5单板支持)。端口类型2为专用管理网口,没有NCSI功能
0xff-data1为disable- data3-NCSI的RX channel port1
0-PORT1
1-PORT2
2-PORT3
3-PORT4
0xff-data1为disable- data4-NCSI的RX channel port2
0-PORT1
1-PORT2
2-PORT3
3-PORT4
0xff-data1为disable
25
3rd DNS Serverdata1:N-DNS Server IP/host
Max 128 Bytes.End by null if less than 128 Bytes.
27

返回到索引