Set IPMC Configuration
更新时间: 2026/08/06
在Gitcode上查看源码Set IPMC Configuration
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
This command is used to set IPMC configuration parameters.
Privilege
ReadOnly
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | 30h |
| CMD | 93h |
| 1:3 | Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h. |
| 4 | Indicates a subcommand. The value is 05h. |
| 5 | Parameter Selector. For details, see Table 1. |
| 6 | [7:1]: reserved [0]: cascading flag 0: last data 1: middle data |
| 7 | Offset of the written data, starting from 0. Write data in sequence when they are written as multiple frames. |
| 8 | Length: write length |
| 9:N | Written data |
Response Information
| Byte | Data Field |
|---|---|
| 1 | Completion Code |
| 2:4 | Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h. |
Reference
Table 1 IPMC Configuration Parameter
| Parameter | Parameter Data | No. (Decimal) |
|---|---|---|
| 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: LOM NIC 1: standard PCIe NIC | 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 | Quintuple. A maximum of three quintuples are supported. data1: port type 0: LOM NIC 1: standard PCIe NIC 2: dedicated management network port data2:data5: ports involved in auto-negotiation Each bit indicates whether to add a port to the adaptive port list. 0 indicates no, and 1 indicates yes. Bit 0 of data2 indicates port 1, bit 1 of data2 indicates port 2, bit 0 of data3 indicates port 9, and so on. ... If you use this command to query or set any two of the LOM NIC, standard PCIe NIC, and dedicated management network port, data6 indicates the port type, and data7–data10 indicate adaptive ports. If you use this command to query all the LOM NIC, standard PCIe NIC, and dedicated management network port, data6 indicates the port type, data7–data10 indicate adaptive ports, data11 indicates the port type, and data12–data15 indicate adaptive ports. | 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 | # Enable the RX channel of the NCSI. The RX channel can be enabled for only two ports. Data 3 is not equal to data4. To disable the RX channel of the NC-SI, set data2, data3, and data4 to 0xff. When LACP is queried, if data1 is disable, data2, data3, and data4 are 0xff. The value of Offset must be set to 0 during the setting and query processes. RX channel enable flag of data1-NCSI 0 disable 1 enable data2: port type 0: LOM NIC 1: standard PCIe NIC 3: LOM NIC 2 (supported only by the V5 board) Port type 2 indicates a dedicated management network port and does not support the NC-SI function. 4 OCP network adapter 5. OCP network adapter 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 | # Set the backup IP address. data1-4 is the backup IP address. data5-8 is the backup mask address. # Query the backup IP address. data1: activated status 0: inactivated 1: activated data2-5: backup IP address data6-9: backup mask | 26 |
| 3rd DNS Server | data1:N-DNS Server IP/host Max 128 Bytes.End by null if less than 128 Bytes. | 27 |
Command Example
Set IPMC configuration parameters.
Request:
bash
ipmicmd -k "0f 00 30 93 db 07 00 05 01 00 00 06 68 75 61 77 65 69" smi 0Response:
text
0f 31 00 93 00 db 07 00