Get Power Supply Info Configuration
更新时间: 2026/08/06
在Gitcode上查看源码Get Power Supply Info 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 the power supply configuration.
Privilege
PowerMgnt
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=1Eh |
| 5 | Power Supply Selector, 1 based |
| 6 | bit 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. |
| 7 | Read offset, starting from 0. |
| 8 | 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 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:N | Indicates the data. The returned data may be less than or equal to the read length. |
Reference
Table 1 Power Supply Info Parameter
| Parameter | Parameter 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 Mode | 2 |
| 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 Protocol | 5 |
| Rated Power | - | data1:2 Get Power Supply Rated Power LS-byte first | 6 |
| Vin | read-only | data1:4-Get Power Supply Input Voltage In Volts LS-byte first | 7 |
| Vout | read-only | data1:4-Get Power Supply Output Voltage In Volts LS-byte first | 8 |
| Iin | read-only | data1:4-Get Power Supply Input Current In Amperes LS-byte first | 9 |
| Iout | read-only | data1:4-Get Power Supply Output Current In Amperes LS-byte first | 10 |
| Switch Status | read-write | data1:1-Set Power Supply Power-On Power-Off Flag. | 11 |
| SN | read-only | data1:N-Get Power Supply SN Max 50 Bytes.End by null if less than 50 Bytes | 12 |
| Env Temp | read-only | data1:4-Get Power Supply Environment Temperature LS-byte first | 13 |
| Input Power | read-only | data1:4-Get Power Supply Input Power In Watts LS-byte first | 14 |
| Output Power | read-only | data1:4-Get Power Supply Output Power In Watts LS-byte first | 15 |
| Vout Work mode | read-write | data1: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 Type | read-only | data1:1-Get Power Source Type 0: chip (for example, INA220) 1: PSU | 17 |
| Actual Vout Work Mode | read-only | data1: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 Status | read-only | data1: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 Status | read-only | data1: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 Status | read-only | data1: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 Status | write-only | data1: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 SN | read-only | data1:1 Get Power Supply Original SN The values of the entire byte are as follows: H3C power supply dedicated support items | 23 |
| DeepSleepEnabled | read-write | data1: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