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

05h-设置IPMC配置参数(Set-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,子命令=05h
5Parameter Selector,见 表1 。
6[7:1]:reserved
[0]:级联标志
0=是最后一帧数据
1=后面还有数据
7Offset,写入的数据偏移,从0开始
当数据较长需要多次写入时,一定要从头到尾按顺序写入,不能乱序。
8Length,写入长度
9:N写入的数据

响应信息

字节顺序域取值说明
1Completion Code
2:4Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。

命令样例

设置IPMC配置参数

请求:

ipmicmd -k "0f 00 30 93 db 07 00 05 01 00 00 06 68 75 61 77 65 69" smi 0

响应:

0f 31 00 93 00 db 07 00

附表1 IPMC Configuration Parameter

ParameterParameter Data#(10进制)
Hostnamedata1:N-BMC Hostname
Max 128 Bytes.End by null if less than 128 Bytes.
1
ldap hostdata1:N-uri
Max 128 Bytes.End by 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
Max 128 Bytes.End by 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:1-DNS bind eth port
0 eth0
1 eth1
12
NCSI bind portdata1:1-NCSI bind port
0 PORT1
1 PORT2
data 2:2
0 板载网卡
1 标准PCIE网卡
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 Sourcedata1: NTP static/DHCP
0 static
1 DHCP
20
NTP bind IP protocoldata1: NTP IP protocol
0 IPv4
1 IPv6
21
Adaptive Port List五元组,最多3组:
data1-端口类型
0 板载网卡
1 标准PCIE网卡
2 专用管理网口
data2:data5-参与自适应的端口
每一bit含义表示port是否加入自适应列表,0表示不加入,1表示加入。
data2的bit0表示port1,data2的bit1表示port2……data3的bit0表示port9……依次类推
……
当同时查询或设置板载网卡、标准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功能
4 OCP网卡
5 OCP网卡2
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
Backup Ipaddr# 设置备份IP时
data1-4是备份IP地址
data5-8是备份mask地址
# 查询备份IP时
data1: 激活状态
0 未激活
1 激活
data2-5: 备份ip
data6-9: 备份mask
26
3rd DNS Serverdata1:N-DNS Server IP/host
Max 128 Bytes.End by null if less than 128 Bytes.
27

返回到索引