-
Notifications
You must be signed in to change notification settings - Fork 647
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
Conversation
Please add unit test |
Added. |
@Junchao-Mellanox , Pls check the updates. |
@gechiang we need to take this in msft repo. not sure we can take in 2022205 branch as this is enhancement. |
|
@abdosi , If you need this for 202305, please submit a MSFT ADO for it... |
enhancement. |
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
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.
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