Get IPMC Configuration
更新时间: 2026/08/06
在Gitcode上查看源码Get 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 query 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 | Sub command, sub command=06h |
| 5 | Parameter selector. For details, see Table 1. |
| 6 | Read offset, starting from 0. |
| 7 | Length: read length. |
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. |
| 5 | End of List, indicating whether the current data is complete. Long data may need to be read multiple times. This field is used to check whether data is completely read. [7:1]: reserved. [0]: End of list 0=last data 1=middle data |
| 6:N | Indicates the data. The returned data may be less than or equal to the read length. |
Reference Information
Table 1 IPMC configuration
| Parameter | Parameter Data | No. (Decimal) |
|---|---|---|
| Host name | data1:N-BMC host name Maximum of 128 bytes, ended with null if less than 128 bytes. | 1 |
| LDAP host | data1:N-URI Maximum of 128 bytes, ended with 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 Maximum of 128 bytes, ended with 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-DNS bind eth port 0-eth0 1-eth1 | 12 |
| NCSI bind port | data1-NCSI bind port0-PORT1 1-PORT2 2-PORT3 3-PORT4 If a dual-port NIC is configured, the value can be 0 or 1. If a four-port NIC is configured, the value can be 0, 1, 2, or 3. data 20-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 | data1: network port type0- onboard NIC 1- standard PCIe NIC 2- dedicated management network port data2:5: adaptive port Each bit indicates whether the port is added to the adaptive list. The value 0 indicates that the port is not added to the adaptive list, and the value 1 indicates that the port is added to the adaptive list. Bit 0 of data2 indicates port 1, bit 1 of data2 indicates port 2, and so on. ...... When you query or set any two of the onboard NIC, standard PCIe NIC, and dedicated management network port at the same time, data6 indicates the port type, and data7 to data10 indicate the adaptive ports. When you query or set the LOM, standard PCIe NIC, and dedicated management network port at the same time, data6 indicates the port type, data7 to data10 indicate the adaptive ports, data11 indicates the port type, and data12 to data15 indicate the 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-NCSI0-disable 1-enable data2: port type0- onboard NIC 1- standard PCIe NIC 3- LOM 2 (supported only by the V5 board) Port type 2 indicates a dedicated management network port and does not support the NC-SI function. 0xff-data1: disable data3-NCSI RX channel port10-PORT1 1-PORT2 2-PORT3 3-PORT4 0xff-data1: disable data4-NCSI RX channel port20-PORT1 1-PORT2 2-PORT3 3-PORT4 0xff-data1: disable | 25 |
| 3rd DNS Server | data1:N-DNS Server IP/host Max 128 Bytes.End by null if less than 128 Bytes. | 27 |
Command Example
Obtain the IPMC host name.
Request:
bash
ipmicmd -k "0f 00 30 93 db 07 00 06 0x01 0x00 0x10" smi 0Response:
text
0f 31 00 93 00 db 07 00 00 68 75 61 77 65 69