Skip to content

Voltage and Current Sensors CLI#2941

Merged
abdosi merged 12 commits intosonic-net:masterfrom
bmridul:vsensor_cli
Sep 7, 2023
Merged

Voltage and Current Sensors CLI#2941
abdosi merged 12 commits intosonic-net:masterfrom
bmridul:vsensor_cli

Conversation

@bmridul
Copy link
Copy Markdown
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

Comment thread scripts/sensorshow Outdated
Comment thread scripts/sensorshow Outdated
@Junchao-Mellanox
Copy link
Copy Markdown
Collaborator

Please add unit test

@bmridul
Copy link
Copy Markdown
Contributor Author

bmridul commented Aug 18, 2023

Please add unit test

Added.

Comment thread scripts/sensorshow Outdated
@bmridul
Copy link
Copy Markdown
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
@abdosi
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

gechiang commented Sep 7, 2023

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

@StormLiangMS
Copy link
Copy Markdown
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
Copy Markdown

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

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants