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

Voltage and Current Sensors CLI #2941

Merged
merged 12 commits into from
Sep 7, 2023
Merged

Conversation

bmridul
Copy link
Contributor

@bmridul bmridul commented Aug 10, 2023

What I did

Added support for voltage and current sensor monitoring CLIs as mentioned in the feature HLD for PMON Voltage/Current Sensor Monitoring Enhancement.
sonic-net/SONiC#1394

How I did it

How to verify it

Two new CLIs are introduced for platforms.

  • show platform voltage
  • show platform current

Sample outputs are

cisco@sonic:~$ show platform volt
Sensor Voltage(mV) High TH Low TH Crit High TH Crit Low TH Warning Timestamp


VP0P75_CORE_NPU0 760 852 684 872 664 False 20230626 08:43:04
VP0P75_CORE_NPU1 759 852 684 872 664 False 20230626 08:43:04

cisco@sonic:~$ show platform curr
Sensor Current(mA) High TH Low TH Crit High TH Crit Low TH Warning Timestamp


CURR_CORE_NPU0 416 440 320 460 300 False 20230626 08:43:05
CURR_CORE_NPU1 360 440 320 460 300 False 20230626 08:43:05

scripts/sensorshow Outdated Show resolved Hide resolved
scripts/sensorshow Outdated Show resolved Hide resolved
@Junchao-Mellanox
Copy link
Collaborator

Please add unit test

@bmridul
Copy link
Contributor Author

bmridul commented Aug 18, 2023

Please add unit test

Added.

scripts/sensorshow Outdated Show resolved Hide resolved
@bmridul
Copy link
Contributor Author

bmridul commented Aug 31, 2023

@Junchao-Mellanox , Pls check the updates.

@abdosi abdosi merged commit 3a4ebb6 into sonic-net:master Sep 7, 2023
5 checks passed
@abdosi
Copy link
Contributor

abdosi commented Sep 7, 2023

@gechiang we need to take this in msft repo. not sure we can take in 2022205 branch as this is enhancement.

@gechiang
Copy link
Contributor

gechiang commented Sep 7, 2023

@gechiang we need to take this in msft repo. not sure we can take in 2022205 branch as this is enhancement.
Does tis has a dependency on sonic-net/sonic-platform-common#393 ?
If so, we can not take it until we decide to spin off submodule sonic-platform-common into a new msft repo...
Is this a bug fix or is it a new feature?

@gechiang
Copy link
Contributor

gechiang commented Sep 7, 2023

@abdosi , If you need this for 202305, please submit a MSFT ADO for it...

@StormLiangMS
Copy link
Contributor

enhancement.

JunhongMao pushed a commit to JunhongMao/sonic-utilities that referenced this pull request Oct 4, 2023
Added support for voltage and current sensor monitoring CLIs as mentioned in the feature HLD for PMON Voltage/Current Sensor Monitoring Enhancement.
sonic-net/SONiC#1394
* Addressed review comments

* Fix review comment

* UT file

* Fixed dependency for running unit test on platform common changes

* Fixed standalone unit test failure

* Addressed review comment
@shivuv
Copy link

shivuv commented Dec 21, 2023

@gechiang @abdosi : Can you please help to cherry pick this into 202305 branch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants