Set IPMC Configuration
更新时间: 2025/06/26
在Gitcode上查看源码05h-设置IPMC配置参数(Set-IPMC-Configuration)
修订记录
| openUBMC版本号 | 修订日期 | 修订内容 |
|---|---|---|
| 25.06 | 2025/06/26 | 初稿,新增命令详情 |
基本信息
功能说明
设置IPMC配置参数。
权限
ReadOnly
命令信息
请求信息
| 字节顺序 | 域取值说明 |
|---|---|
| NetFn | 30h |
| CMD | 93h |
| 1:3 | Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。 |
| 4 | Sub command,子命令=05h |
| 5 | Parameter Selector,见 表1 。 |
| 6 | [7:1]:reserved [0]:级联标志 0=是最后一帧数据 1=后面还有数据 |
| 7 | Offset,写入的数据偏移,从0开始 当数据较长需要多次写入时,一定要从头到尾按顺序写入,不能乱序。 |
| 8 | Length,写入长度 |
| 9:N | 写入的数据 |
响应信息
| 字节顺序 | 域取值说明 |
|---|---|
| 1 | Completion Code |
| 2:4 | Manufacturer 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
| Parameter | Parameter Data | #(10进制) |
|---|---|---|
| Hostname | data1:N-BMC Hostname Max 128 Bytes.End by null if less than 128 Bytes. | 1 |
| ldap host | data1:N-uri Max 128 Bytes.End by null if less than 128 Bytes. | 2 |
| Domain Name | data1:N-Domain name Max 128 Bytes.End by null if less than 128 Bytes. | 3 |
| DNS Server | data1:N-DNS Server IP/host Max 128 Bytes.End by null if less than 128 Bytes. | 4 |
| ldap user base | data1:N-Ldap user base Max 128 Bytes.End by null if less than 128 Bytes. | 5 |
| ldap enable | data1: disable/enable ldap 0 disable 1 enable | 6 |
| 2nd DNS Server | data1:N-DNS Server IP/host Max 128 Bytes.End by null if less than 128 Bytes. | 7 |
| DNS bind eth port | data1:1-DNS bind eth port 0 eth0 1 eth1 | 12 |
| NCSI bind port | data1:1-NCSI bind port 0 PORT1 1 PORT2 data 2:2 0 板载网卡 1 标准PCIE网卡 | 13 |
| iMana resource Server | data1:N -iMana resource Server IP Max 128 Bytes.End by null if less than 128 Bytes. | 14 |
| DNS source | data1: ddns static/DHCP 0 static 1 DHCP | 15 |
| DNS bind IP protocol | data1: dns IP protocol 0 IPv4 1 IPv6 | 16 |
| NTP enable | data1: disable/enable NTP 0 disable 1 enable | 17 |
| Primary NTP Server | data1:N-NTP Server IP/host Max 255 Bytes.End by null if less than 255 Bytes. | 18 |
| Secondary NTP Server | data1: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 | 五元组,最多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 status | data1: LDAP CERT status 0 Disable 1 Enable | 23 |
| WEB httphost | data1: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 Server | data1:N-DNS Server IP/host Max 128 Bytes.End by null if less than 128 Bytes. | 27 |