Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pddf_thermalutil gettemp will show a stranger result when the temperature value is 0. #2845

Open
nonodark opened this issue May 23, 2023 · 0 comments

Comments

@nonodark
Copy link

Description

"pddf_thermalutil gettemp" will show a stranger result when the temperature value is 0.

Steps to reproduce the issue

  1. execute "pddf_thermalutil gettemp" when the thermal sensor gets a 0 value.

Describe the results you received

[Command]: tempershow
          Sensor    Temperature    High TH    Low TH    Crit High TH    Crit Low TH    Warning          Timestamp
----------------  -------------  ---------  --------  --------------  -------------  ---------  -----------------
      PSU1_TEMP1              0        N/A       N/A             N/A            N/A      False  20230523 01:48:59
      PSU2_TEMP1             37        N/A       N/A             N/A            N/A      False  20230523 01:48:59
    TEMP_ENV_BMC             40       80.0       N/A            85.0            N/A      False  20230523 01:48:59
TEMP_ENV_MACCASE             42       75.0       N/A            85.0            N/A      False  20230523 01:48:59
TEMP_ENV_PSUCASE             38       70.0       N/A            75.0            N/A      False  20230523 01:48:59
TEMP_ENV_SSDCASE             44       75.0       N/A            80.0            N/A      False  20230523 01:48:59
        TEMP_MAC             45       95.0       N/A           105.0            N/A      False  20230523 01:48:59
 TEMP_PSU0_TEMP1              0       65.0       N/A            70.0            N/A      False  20230523 01:48:59
 TEMP_PSU1_TEMP1             37       65.0       N/A            70.0            N/A      False  20230523 01:48:59



[Command]: pddf_thermalutil gettemp
Temp Sensor       Value
----------------  -------
TEMP_MAC          temp1	 +45.0 C (high = +95.0 C, crit = +105.0 C)
TEMP_ENV_MACCASE  temp1	 +42.0 C (high = +75.0 C, crit = +85.0 C)
TEMP_ENV_SSDCASE  temp1	 +44.0 C (high = +75.0 C, crit = +80.0 C)
TEMP_ENV_PSUCASE  temp1	 +38.0 C (high = +70.0 C, crit = +75.0 C)
TEMP_ENV_BMC      temp1	 +40.0 C (high = +80.0 C, crit = +85.0 C)
TEMP_PSU0_TEMP1   temp1	 +40.0 C (high = +80.0 C, crit = +85.0 C)high = +65.0 C, crit = +70.0 C) ---> this is stranger
TEMP_PSU1_TEMP1   temp1	 +38.0 C (high = +65.0 C, crit = +70.0 C)

Describe the results you expected

TEMP_PSU0_TEMP1 is 0
[Command]: pddf_thermalutil gettemp
Temp Sensor       Value
----------------  -------
TEMP_MAC          temp1	 +45.0 C (high = +95.0 C, crit = +105.0 C)
TEMP_ENV_MACCASE  temp1	 +42.0 C (high = +75.0 C, crit = +85.0 C)
TEMP_ENV_SSDCASE  temp1	 +44.0 C (high = +75.0 C, crit = +80.0 C)
TEMP_ENV_PSUCASE  temp1	 +38.0 C (high = +70.0 C, crit = +75.0 C)
TEMP_ENV_BMC      temp1	 +40.0 C (high = +80.0 C, crit = +85.0 C)
TEMP_PSU0_TEMP1   temp1	 +0.0 C (high = +65.0 C, crit = +70.0 C)
TEMP_PSU1_TEMP1   temp1	 +38.0 C (high = +65.0 C, crit = +70.0 C)
TEMP_PSU0_TEMP1 is not available
[Command]: pddf_thermalutil gettemp
Temp Sensor       Value
----------------  -------
TEMP_MAC          temp1	 +45.0 C (high = +95.0 C, crit = +105.0 C)
TEMP_ENV_MACCASE  temp1	 +42.0 C (high = +75.0 C, crit = +85.0 C)
TEMP_ENV_SSDCASE  temp1	 +44.0 C (high = +75.0 C, crit = +80.0 C)
TEMP_ENV_PSUCASE  temp1	 +38.0 C (high = +70.0 C, crit = +75.0 C)
TEMP_ENV_BMC      temp1	 +40.0 C (high = +80.0 C, crit = +85.0 C)
TEMP_PSU0_TEMP1   temp1	 N/A (high = +65.0 C, crit = +70.0 C)
TEMP_PSU1_TEMP1   temp1	 +38.0 C (high = +65.0 C, crit = +70.0 C)

Additional information you deem important (e.g. issue happens only occasionally)

Output of show version

(paste your output here)
root@sonic:~# show version

SONiC Software Version: SONiC.master-local.0-dirty-20230522.183320
SONiC OS Version: 11
Distribution: Debian 11.7
Kernel: 5.10.0-18-2-amd64
Build commit: d1b7ba44b
Build date: Mon May 22 10:38:52 UTC 2023
Built by: nonodark@u18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant