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

Get Power Supply Info Configuration

Change History

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

Basic Information

Function Description

This command is used to query the power supply configuration.

Privilege

PowerMgnt

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=1Eh
5Power Supply Selector, 1 based
6bit 7:6-Input channel
base 0, power supply supports multiple inputs. This parameter is used to query which input is used.
bit 5:0-Power Supply Info Parameter. For details, see Table 1.
7Read offset, starting from 0.
8Length: 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 data reading 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

Table 1 Power Supply Info Parameter

ParameterParameter Data# (Decimal Format)
Manufacturer-data1:N-Get Power Supply Manufacturer
Max 50 Bytes. End by null if less than 50 Bytes.
1
Input Mode-data1:1-Get Power Supply Input Mode2
Model-data1:N-Get Power Supply Model
Max 50 Bytes. End by null if less than 50 Bytes.
3
Version-data1:N-Get Power Supply Version
Max 50 Bytes. End by null if less than 50 Bytes.
4
Protocol-data1:1-Get Power Supply Protocol5
Rated Power-data1:2 Get Power Supply Rated Power
LS-byte first
6
Vinread-onlydata1:4-Get Power Supply Input Voltage In Volts
LS-byte first
7
Voutread-onlydata1:4-Get Power Supply Output Voltage In Volts
LS-byte first
8
Iinread-onlydata1:4-Get Power Supply Input Current In Amperes
LS-byte first
9
Ioutread-onlydata1:4-Get Power Supply Output Current In Amperes
LS-byte first
10
Switch Statusread-writedata1:1-Set Power Supply Power-On Power-Off Flag.11
SNread-onlydata1:N-Get Power Supply SN
Max 50 Bytes.End by null if less than 50 Bytes
12
Env Tempread-onlydata1:4-Get Power Supply Environment Temperature
LS-byte first
13
Input Powerread-onlydata1:4-Get Power Supply Input Power In Watts
LS-byte first
14
Output Powerread-onlydata1:4-Get Power Supply Output Power In Watts
LS-byte first
15
Vout Work moderead-writedata1:4-Get/Set Power Supply Vout work mode, bit0~bit31-PS1~PS32, LS-byte first
The options of each digit are as follows:
0: master
1: slave
16
Source Typeread-onlydata1:1-Get Power Source Type
0: chip (for example, INA220)
1: PSU
17
Actual Vout Work Moderead-onlydata1:4-Get Power Supply Actual Vout work mode, bit0~bit31-PS1~PS32, LS-byte first
The options of each digit are as follows:
0: master
1: slave
18
Ps OK Statusread-onlydata1:1-Get Power Supply Ps OK Status
The values of the entire byte are as follows:
0: abnormal (The power output is abnormal.)
1: normal (The power output is normal.)
19
Mfr Statusread-onlydata1:1-Get Power Supply mfr status
The meaning of each digit is as follows:
Bit 7: PSON (12V). The value 1 indicates that the PSON is enabled, and the 12 V power supply is normal.
Bit6 INSTALLED 1: power supply INSTALLED
Bit5 IPOK 1: The power input status is normal.
Bit4 OPOK 1: The power output status is normal.
20
PSON Statusread-onlydata1:1-Get Power Supply PSON status
The values of the entire byte are as follows:
0: PSON disabled (power supply disabled)
1: PSON enabled (12 V power supply enabled)
21
Led Statuswrite-onlydata1:1-Set Power Supply Led Status
The values of the entire byte are as follows:
0x00: The PSU controls the LED color.
0x80: manually turning off the indicator
0x81: The indicator turns green manually.
0x82: The indicator turns orange manually.
22
PSU Original SNread-onlydata1:1 Get Power Supply Original SN
The values of the entire byte are as follows:
H3C power supply dedicated support items
23
DeepSleepEnabledread-writedata1:1 Set/Get Power Supply Deep Sleep Enabled Status
0x00: The deep sleep mode is disabled.
0x01: The PSU deep hibernation function is enabled.
24

Command Example

Query the power supply configuration.

Request:

bash
Request:
ipmicmd -k "0f 00 30 93 db 07 00 1e 00 02 00 ff" smi 0
Response:
0f 31 00 93 00 db 07 00 00 01

Back to Index