Translate

2020年3月9日 星期一

[知識文] BMC IPMI Set Sensor Threshold Test

內容說明:
#ipmitool  表示使用ipmitool命令
>>  表示輸出值
-->  輸出輸入值的轉換說明
PS. 個人註解

=== Modify Sensor Threshold Test ===


1. Read Sensor Information:
#ipmitool -I lanplus -H (BMC_IP) -U root -P admin sensor list
>> SYS_12V | 12.100 | Volts | ok | na | 10.200 | 10.800 | 13.200 | 13.800 | na

2. Read Sensor ID:
#ipmitool -I lanplus -H (BMC_IP) -U root -P admin sdr elist
>> SYS_12V          | 35h | ok  |  7.21 | 12.10 Volts
--> 35h ; 就是這個Sensor的ID, 後面都會用到它

3. Get Sensor Reading Command:
#ipmitool -I lanplus -H (BMC_IP) -U root -P admin raw 4 0x2d 0x35
>> 79 c0 c0 00
--> byte 2 ; 79 (16進制 10進制) 121, 
PS. 這個值是否為可閱讀的我不太確定, 有一些Sensor的值轉進後不太符合預期, 其實可以單看16進制的值就好, 因為後面設定門檻值用的也是16進制

4. Get Sensor Thresholds:
#ipmitool -I lanplus -H (BMC_IP) -U root -P admin raw 4 0x27 0x35
>> 1b 6c 66 00 84 8a 00
--> byte 3 ; 6c (16進制  10進制) 108 ; lower non-critical threshold
--> byte 4 ; 66 (16進制  10進制) 102 ; lower critical threshold
--> byte 6 ; 84 (16進制  10進制) 132 ; upper non-critical threshold
--> byte 7 ; 8a (16進制  10進制) 138 ; upper critical threshold
PS. 這個值是否為可閱讀的我不太確定, 有一些Sensor的值轉進後不太符合預期

5. Set Sensor Thresholds: (set upper non-critical threshold)
#ipmitool -I lanplus -H (BMC_IP) -U root -P admin raw 4 0x26 0x35 0x08 0 0 0 0x70 0 0
>>
--> byte 2 ; 08 (16進制  2進制)  00001000; 因為bit3值為1, 符合 [3] 表示set upper non-critical threshold
--> byte 3,4,5,7,8 ; 00 (16進制  2進制) 0 ; 不關這幾個的事, 掛0
--> byte 6 ; 112 (10進制  16進制) 70 ; Set upper non-critical threshold 為112

6. Set Sensor Thresholds: (set upper critical threshold)
#ipmitool -I lanplus -H (BMC_IP) -U root -P admin raw 4 0x26 0x35 0x10 0 0 0 0 0x72 0
>>
--> byte 2 ; 10 (16進制  2進制)  00010000; 因為bit4值為1, 符合 [4] 表示set upper critical threshold
--> byte 3,4,5,6,8 ; 00 (16進制  2進制) 0 ; 不關這幾個的事, 掛0
--> byte 7 ; 114 (10進制  16進制) 72 ; Set upper critical threshold 為114

7. Get Sensor Thresholds:
#ipmitool -I lanplus -H (BMC_IP) -U root -P admin raw 4 0x27 0x35
>> 1b 6c 66 00 70 72 00

#ipmitool -I lanplus -H (BMC_IP) -U root -P admin sensor list
>> SYS_12V | 12.100 | Volts | ok | na | 10.200 | 10.800 | 11.200 | 11.400 | na
PS. 確認修改成功

8. Get SEL:
#ipmitool -I lanplus -H (BMC_IP) -U root -P admin sel list
>> | Voltage #0x35 | Upper Non-critical going high | Asserted
>> | Voltage #0x35 | Upper Critical going high | Asserted

沒有留言:

張貼留言