如何从命令行获取 Supermicro 服务器的电源使用情况?
答案1
您还可以:
ipmitool dcmi power reading
答案2
这可以通过 Supermicro SMCIPMITool 来完成;请参阅“输入功率”。
[root@mgmt ~/SMCIPMITool/SMCIPMITool_2.11.0_bundleJRE_Linux_x64_20140704]# ./SMCIPMITool supermicro-ipmi-interface ADMIN password pminfo
strings: '/lib/libc.so.6': No such file
[SlaveAddress = 78h] [Module 1]
Item | Value
---- | -----
Status | [STATUS OK](00h)
Input Voltage | 225.75 V
Input Current | 1.12 A
Main Output Voltage | 12.1 V
Main Output Current | 17.71 A
Temperature 1 | 36C/97F
Temperature 2 | 47C/117F
Fan 1 | 1408 RPM
Fan 2 | 1056 RPM
Main Output Power | 214 W
Input Power | 244 W
PMBus Revision | 0x1B12
PWS Serial Number | P1K28CD34ZB0791
PWS Module Number | PWS-1K28P-SQ
PWS Revision | REV1.1
[SlaveAddress = 7Ah] [Module 2]
Item | Value
---- | -----
Status | [STATUS OK](00h)
Input Voltage | 227.5 V
Input Current | 1.0 A
Main Output Voltage | 12.13 V
Main Output Current | 16.43 A
Temperature 1 | 34C/93F
Temperature 2 | 45C/113F
Fan 1 | 1376 RPM
Fan 2 | 1056 RPM
Main Output Power | 198 W
Input Power | 218 W
PMBus Revision | 0x1D12
PWS Serial Number | P1K28CD30YB1369
PWS Module Number | PWS-1K28P-SQ
PWS Revision | REV1.1
该工具可以在这里找到:ftp://ftp.supermicro.com/utility/SMCIPMItool/
[编辑]
如果密码正确但出现“无法登录 [ip-address]”的情况,请尝试以下操作:IPMI Web 界面 -> 杂项 -> SMC RAKP -> 禁用
答案3
对于 FreeBSD:
pkg install ipmitool
kldload ipmi