How to check Wedge100BF hardware information under OpenBMC

Steven_zhangCreated at:Dec 10, 2019 10:42:25

This document shows how to find and use some functions under openBMC to check the hardware information.
1. weutil : show switch’s Serial No. / MAC
root@bmc:~# weutil 

Product Sub-Version: 3
Product Serial Number: AXXXXXXXXX
Product Asset Tag: 000000001

Assembled At: Joytech
Local MAC: A8:2B:B5:0C:30:15


2. btools.py : show PSU info. / show Temperature etc.
Get help info. : btools.py help
Get PSU info. EX: Get PSU power info. (Only insert PSU 1)
root@bmc:~# btools.py --PSU 1 r p
pfe1100 7-0059: MFR_ID is [PFE600-12-054NA]
pfe1100 7-005a: MFR_ID is [PFE600-12-054NA]
70000.0mW
root@bmc:~# btools.py --PSU 2 r p
0.0mW
Get switch Temperature (Montara for 32X / Mavericks for 65X)
root@bmc:~# btools.py --TMP Montara sh
TMP SENSOR 01 29.500 C
TMP SENSOR 02 28.500 C
TMP SENSOR 03 29.500 C
TMP SENSOR 04 27.000 C
TMP SENSOR 05 25.000 C
TMP SENSOR MAX LOCAL 26.000 C
TMP SENSOR MAX Tofino 38.000 C

3. get_fan_speed.sh
root@bmc:~# get_fan_speed.sh
Fan 1 RPMs: 6150, 3900, (32%)
Fan 2 RPMs: 6150, 3750, (32%)
Fan 3 RPMs: 6150, 4050, (32%)
Fan 4 RPMs: 6150, 3900, (32%)
Fan 5 RPMs: 6000, 3900, (32%)
For 65X: add the key word “Mavericks” will show 10 fans
root@bmc:~# get_fan_speed.sh Mavericks
Fan 1 RPMs: 12150, 9750, (67%)
Fan 2 RPMs: 12300, 9750, (67%)
Fan 3 RPMs: 12300, 9900, (67%)
Fan 4 RPMs: 12150, 9750, (67%)
Fan 5 RPMs: 12300, 9900, (67%)
Fan 6 RPMs: 12150, 9900, (67%)
Fan 7 RPMs: 12300, 9900, (67%)
Fan 8 RPMs: 12300, 9750, (67%)
Fan 9 RPMs: 12150, 9900, (67%)
Fan 10 RPMs: 12300, 9750, (67%)
To specify the number of fan. (1-10 for 65X, 1-5 for 32X)
root@bmc:~# get_fan_speed.sh 1
Fan 1 RPMs: 6300, 3900, (32%)
 
PS. To find the location of known function, use the command "which".
EX:
root@bmc:~# which sol.sh
/usr/local/bin/sol.sh