SMCIPMITool: Supermicro Specific SMC IPMITool with OEM functions

From Define Wiki
Jump to navigation Jump to search
  • More to be added, quick note on measuring power with SMCIPMITool
  • Note: this get the per PSU power
#!/bin/bash
rm epcc-head
rm epcc2
rm epcc3
rm epcc4
rm epcc5

while true
do
	./SMCIPMITool 172.28.0.15 ADMIN ADMIN pminfo | grep "Power" | awk -F"|" '{print $2}' >> epcc-head
	./SMCIPMITool 173.28.10.2 ADMIN ADMIN pminfo | grep "Power" | awk -F"|" '{print $2}' >> epcc2
	./SMCIPMITool 173.28.10.3 ADMIN ADMIN pminfo | grep "Power" | awk -F"|" '{print $2}' >> epcc3
	./SMCIPMITool 173.28.0.12 ADMIN ADMIN pminfo | grep "Power" | awk -F"|" '{print $2}' >> epcc4
	./SMCIPMITool 173.28.0.15 ADMIN ADMIN pminfo | grep "Power" | awk -F"|" '{print $2}' >> epcc5
done
  • Get the system power
[root@head1 SMCIPMITool_2.16.0_build.160816_bundleJRE_Linux_x64]# ./SMCIPMITool storagenode120-ipmi ADMIN ADMIN pminfo 
 [SlaveAddress = B0h] 
 Item                           |                Value 
 ----                           |                ----- 
 Status                         |           ON (00 00) 
 Input Voltage                  |              229.5 V 
 Input Current                  |               2.29 A 
 Main Output Voltage            |              12.39 V 
 Main Output Current            |              41.12 A 
 Temperature 1                  |             44C/111F 
 Temperature 2                  |             51C/124F 
 Fan 1                          |             3424 RPM 
 Fan 2                          |            11872 RPM 
 Main Output Power              |                509 W 
 Input Power                    |                528 W 
 PMBus Revision                 |               0xD422 
 PWS Serial Number              |      P2K5ACG14AT0643 
 PWS Module Number              |         PWS-2K05A-1R 
 PWS Revision                   |                  1.0 

 [SlaveAddress = B2h] 
 Item                           |                Value 
 ----                           |                ----- 
 Status                         |           ON (00 00) 
 Input Voltage                  |              229.5 V 
 Input Current                  |                2.3 A 
 Main Output Voltage            |              12.39 V 
 Main Output Current            |              40.25 A 
 Temperature 1                  |             40C/104F 
 Temperature 2                  |             54C/129F 
 Fan 1                          |            10272 RPM 
 Fan 2                          |             8512 RPM 
 Main Output Power              |                499 W 
 Input Power                    |                528 W 
 PMBus Revision                 |               0xD222 
 PWS Serial Number              |      P2K5ACG14AT0644 
 PWS Module Number              |         PWS-2K05A-1R 
 PWS Revision                   |                  1.0 

[root@head1 SMCIPMITool_2.16.0_build.160816_bundleJRE_Linux_x64]# ./SMCIPMITool storagenode120-ipmi ADMIN ADMIN nm20 oemGetPower
1098 watts

Update IPMI Firmware using lUpdate

lUpdate is packaged with the IPMI firmware (ver 1.21 used here)

# Perform over the network 
./lUpdate -f ../SMT_X9_320.bin -i lan -h ft2-ipmi -u ADMIN -p ADMIN

# Perform locally
./lUpdate -f ../SMT_X9_320.bin

Update the BIOS

[root@ft1 SMCIPMITool_2.11.0_bundleJRE_Linux_x64_20140704]# ./SMCIPMITool ft2-ipmi ADMIN ADMIN bios update ../updated_bios/X9DRF4.424/X9DRF4.424 -N -R -MER
Option: NVRAM overwrite
Option: ME region
Option: SMBIOS preserve
===============
BIOS Image info
===============
Date     = 04/24/2014
MB Type  = X9DRF-F
Size     = 16 MB
Rev      = 3.0b


=============
BIOS ROM info
=============
070a  BIOS Date: 1/29/2014 Rev 3.0a                             

====================
Uploading BIOS image
====================
Progress:|>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>| 100%
Upload Time: 1 min 26 sec(s)

=============
Updating BIOS
=============
Progress:|>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>| 100%
Update Time: 4 min 22 sec(s)
Total Elapse Time: 5 min 54 sec(s)
Done