openbmc / phosphor-net-ipmid

Network IPMI server
Apache License 2.0
9 stars 11 forks source link

IPMI does not reflect ps0_input_voltag sensor reading correctly #17

Open rahulmah opened 3 years ago

rahulmah commented 3 years ago

IPMI does not reflect ps0_input_voltag sensor reading correctly

This problem is seen with the recent master build: 2.10.0-dev-607-g2aff2743d

Step to recreate:

  1. Check ps0_input_voltage threshold values using Redfish.
    {
      "@odata.id": "/redfish/v1/Chassis/chassis/Power#/Voltages/8",
      "@odata.type": "#Power.v1_0_0.Voltage",
      "LowerThresholdCritical": 180.0,
      "LowerThresholdNonCritical": 200.0,
      "MaxReadingRange": 0.0,
      "MemberId": "ps0_input_voltage",
      "MinReadingRange": 0.0,
      "Name": "ps0 input voltage",
      "ReadingVolts": 208.0,
      "Status": {
        "Health": "OK",
        "State": "Enabled"
      },
      "UpperThresholdCritical": 300.0,
      "UpperThresholdNonCritical": 290.0
  1. Later check get ps0_input_voltag value using IPMI. (Here you will see that IPMI is showing 0 for all sensor values while Redfish is showing some values for these thresholds)

$ipmitool -I lanplus -C 17 -p 623 -U root -P 0penBmc -H <BMC_IP> sensor get ps0_input_voltag
Locating sensor record...
Sensor ID              : ps0_input_voltag (0xf7)
 Entity ID             : 10.19
 Sensor Type (Threshold)  : Voltage
 Sensor Reading        : 0 (+/- 0) Volts
 Status                : ok
 Lower Non-Recoverable : na
 Lower Critical        : 0.000
 Lower Non-Critical    : 0.000
 Upper Non-Critical    : 0.000
 Upper Critical        : 0.000
 Upper Non-Recoverable : na
 Positive Hysteresis   : Unspecified
 Negative Hysteresis   : Unspecified

-bash-4.2$```