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

Get IPMC Configuration

Change History

openUBMC VersionRevision DateDescription
25.062025/06/26Initial draft: add command details

Basic Information

Function Description

This command is used to query IPMC configuration parameters.

Privilege

ReadOnly

Command Information

Request Information

ByteData Field
NetFn30h
CMD93h
1:3Manufacturer 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.
4Sub command, sub command=06h
5Parameter selector. For details, see Table 1.
6Read offset, starting from 0.
7Length: read length.

Response Information

ByteData Field
1Completion Code
2:4Manufacturer 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.
5End 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:NIndicates the data. The returned data may be less than or equal to the read length.

Reference Information

Table 1 IPMC configuration

ParameterParameter DataNo. (Decimal)
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 portdata1-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 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 Listdata1: 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 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# 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 Serverdata1: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 0

Response:

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

Back to Index