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

1Eh-获取电源配置信息(Get-Power-Supply-Info-Configuration)

修订记录

openUBMC版本号修订日期修订内容
25.062025/06/26初稿,新增命令详情

基本信息

功能说明

获取电源配置信息。

权限

PowerMgnt

命令信息

请求信息

字节顺序域取值说明
NetFn30h
CMD93h
1:3Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。
4Sub command,子命令=1Eh
5Power Supply Selector, 1 based
6bit 7:6-Input channel
base 0, 电源支持多路输入,此参数用来表示查询哪一路输入
bit 5:0-Power Supply Info Parameter,见 表1
7Read Offset,读取的数据偏移,从0开始
8Length,读取长度

响应信息

字节顺序域取值说明
1Completion Code
2:4Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。
5End of List,表示当前数据是否结束。当参数数据比较长的时候,可能需要分多次读取,通过此字段可以判断数据是否读完。
[7:1]:reserved.
[0]:End of list.
0=last data.
1=middle data.
6:NData,实际返回的数据可能小于等于Read length

命令样例

获取电源配置信息

请求:
ipmicmd -k "0f 00 30 93 db 07 00 1e 00 02 00 ff" smi 0
响应:
0f 31 00 93 00 db 07 00 00 01

附表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
每位取值如下:
0:主用
1:备用
16
Source Typeread-onlydata1:1-Get Power Source Type
0:chip(如INA220)
1:PSU
17
Actual Vout Work Moderead-onlydata1:4-Get Power Supply Actual Vout work mode, bit0~bit31-PS1~PS32, LS-byte first
每位取值如下:
0:主用
1:备用
18
Ps OK Statusread-onlydata1:1-Get Power Supply Ps OK Status
整个字节取值如下:
0:状态异常(电源供电输出不正常)
1:状态正常(电源供电输出正常)
19
Mfr Statusread-onlydata1:1-Get Power Supply mfr status
每位取值的含义如下:
Bit7 PSON12V 1为PSON打开12v供电正常
Bit6 INSTALLED 1为电源INSTALLED
Bit5 IPOK 1为电源输入状态正常
Bit4 OPOK 1为电源输出状态正常
20
PSON Statusread-onlydata1:1-Get Power Supply PSON status
整个字节取值如下:
0:PSON关闭(供电关闭)
1:PSON打开(12v供电打开)
21
Led Statuswrite-onlydata1:1-Set Power Supply Led Status
整个字节取值如下:
0x00:PSU控制Led灯颜色
0x80:手动控制灭灯
0x81:手动控制变绿灯
0x82:手动控制变橙灯
22
PSU Original SNread-onlydata1:1 Get Power Supply Original SN
整个字节取值如下:
华三电源专用支持项
23
DeepSleepEnabledread-writedata1:1 Set/Get Power Supply Deep Sleep Enabled Status
0x00: 关闭电源深度休眠
0x01: 开启电源深度休眠
24

返回到索引