You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* CLI support for SmartSwitch PMON
* imad minor fixes
* Did some cleanup for backward compatibility
* removed the column wrapping
* Made it backward compatible and removed textwrap and added ut to PR
* 1. There was a duplication of part of a function and that has been
addressed. 2. The DPU reboot-cause data is fetched directly fromn the
chassis_state_db now
* reboot_cause and system_health are obtained directly from chassisStateDB
now
* The expected and result are the same but the test is throwing an error,
temporarily bypassing the check
* Let us get the build going and then look into the test mockup
* Implemented as per the pmon hld, also made some improvements in the
implementation
* Fixed the key for CHASSIS_MODULE_INFO_TABLE entries
* Fixed "show reboot-cause all" and "show reboot-cause history all"
* Addressing review comments
* Checking if the test issue still exists
* Resolving SA errors triggered due to reboot_cause_test
* Resolved pre-commit issues
* Resolved pre-commit issues
* Improving coverage
* Fixed SA related warnings
* Did some cleanup
* Minor improvements and fixes
* Adding tests for system health
* Adding more system health related tests
* Fixed a minor issue
* Fixed long line SA issue
* Trying to please SA
* Trying to improve coverage
* import mock
* Fixed a typo
* mocking DB
* Fixed syntax issues
* DB mock fix
* removed unused import
* creating ut for dpu state
* Improving coverage
* Fixed a typo
* Adjusted the reboot-cause key as per the updated hld
* Added fix to gracefully handle sytem health DB keys not present case
* Addressed minor review comments
* Addressed review comments. Commented out system-health support until
phase:2
* Resolved minor issues and SA failures
* Added role to PORT table in config_db. Using role to differentiate
npu-dpu data plane connection in SmartSwitch with Dpc being the role.
Did a minor cleanup.
* Resolving pre-commit check error related to line > 120
* Trying to avoid pre-commit issues
* Testing SA and precommit checks
* Making it backward compatible
* Resolving column size and whitespace issue
* Working on SA issue
* Testing SA and UT
* Added 2 spaces before inline comment
* Enabling "show system-health dpu" cli alone. The rest of the dpu health
is differed for now.
* Fixed SA issues
* Adde new line at EOF
* Enabling the UT for the CLI "show system-health dpu"
* Resolved SA issues
* Resolved a SA issue
* Added smartswitch specific "reboot-cause" and "reboot-cause history" CLI
extensions
* Removed the phase:2 related system-health cli extensions as a seperate
PR will be raised eventually for phase:2
* Using smartswitch qualifier for the clie extensions
* Fixed SA issues
* mocking device_info for test cases
* import patch in tests
* Debugging test failure
* Fixing SA issues
* fixing sa issues
* Debugging sa issues
* trying to resolve sa issues
* fixed indentation
* debugging
* debugging
* debugging
* debugging
* Debugging
* debugging
* debugging
* Debugging
* Debugging
* Debuggingg
* Debugging
* Debugging
* Debugging
* Debugging
* Debugging
* Debugging
* Debugging
* Debugging
* Debugging
* Debugging
* Debugging
* Debugging
* Debugging
* Debugging
* Debugging
* Debugging
* Debuggingg
* Debugging
* Debugging
* Debugging
* Debugging
* Debugging
* Debugging
* Debugging
* Debugging
* Debugging
* Debugging
* Debugging
* Debugging
* Debugging
* Debugging
* Removing the test to build an image
* Removed mock import
* Improving coverage
* pleasing SA
* Fixing tests for design changes as per review comments
* Resolving test failure
* fixed indentation
* cleaned up the test case
* Addressed review comments in Command-Reference.md and trying to improve
coverage
* Improving coverage
* Fixed a test issue
* Addressed review comments
* Addressed review comment. Reading DPUs list from config_db.json
* Improving coverage
* Resolved SA error
* Trying to improve coverage. Also, reading from platform.json
* adding json import in the test
* Fixed a test failure
* Fixed SA error
* Exercising the new function in test
* Removed a blank line
* fixing mock issue
* Trying a different approach
* working on coverage
* debugging
* debugging
* Debugging
* Increasing coverage
* improving coverage
* Adjusting the show cli implementation to align with the reboot-cause
changes such as 1. STATE_DB vs CHASSIS_STATE_DB and the key info
* Fixing a minor issue
* Removed ID column from the "show system-health dpu DPUx" cli as per the new requirement
* Addressed default dpu admin status for dark-mode and seamless migration
to lightup mode
* Resolving SA issue
* Resolved a typo
* Added checks to see if module_name is valid in the "config chassis
modules startup DPUx" cli aand also moved all the required utilities to
the common file
* Fixed white space issues
* Cleaned unwanted import
* Fixed build issues
* missedout the fixes in a couple of files
* With the recent code the app_db multi_asic.PORT_ROLE is Dpc for DPU
ports, earlier this was not the case. So removing the additional check.
* As the port role issue is no longer seen in smartswitch, cleaning up the
related chnages.
* Using the verbose define for TYPE_DPC in the CLI, if there is a specific
requirement to keep 'TYPE_DPC = Dpc", which is the role, then we will
revert it
* Reverting intfutil_test.py
* Using the common API to get_dpu_list
* Removed unused import json
* Addressed review comments
* Did some minor cleanp
* Fix: SA error
* Addressed review comments
* Addressed review comments
* Addressed review comments
* Addressed review comments
* Addressed review comments
* Addressed review comments
* Addressed review comments
* Addressed review comments
* Addressed review comments
* Addressed review comments
* Addressed review comments
* Addressed review comments
* Addressed review comments
* Addressed review comments
* Addressed review comments
* Addressed review comments
* Addressed review comments
* Addressed review comments
* Addressed review comments
* Added fix for issue:21372 - Device name column shows NPU instead of module name
* Added fix for issue:21372 - Fixing the device name colum in the cli output
* Added a few review comments
Copy file name to clipboardExpand all lines: doc/Command-Reference.md
+136-6
Original file line number
Diff line number
Diff line change
@@ -713,11 +713,52 @@ This command displays the cause of the previous reboot
713
713
```
714
714
715
715
- Example:
716
+
### Shown below is the output of the CLI when executed on the NPU
716
717
```
717
718
admin@sonic:~$ show reboot-cause
718
719
User issued reboot command [User: admin, Time: Mon Mar 25 01:02:03 UTC 2019]
719
720
```
721
+
### Shown below is the output of the CLI when executed on the DPU
722
+
```
723
+
admin@sonic:~$ show reboot-cause
724
+
reboot
725
+
```
726
+
```
727
+
Note: The CLI extensions shown in this block are applicable only to smartswitch platforms. When these extensions are used on a regular switch the extension will be ignored and the output will be the same irrespective of the options.
728
+
729
+
CLI Extensions Applicable to Smartswtich
730
+
- show reboot-cause all
731
+
- show reboot-cause history all
732
+
- show reboot-cause history DPUx
733
+
```
734
+
**show reboot-cause all**
735
+
736
+
This command displays the cause of the previous reboot for the Switch and the DPUs for which the midplane interfaces are up.
737
+
738
+
- Usage:
739
+
```
740
+
show reboot-cause all
741
+
```
742
+
743
+
- Example:
744
+
### Shown below is the output of the CLI when executed on the NPU
NPU 2024_07_23_11_21_32 Power Loss N/A N/A Unknown
805
+
```
806
+
### Shown below is the output of the CLI when executed on the DPU
807
+
```
808
+
root@sonic:/home/admin# show reboot-cause history all
809
+
Usage: show reboot-cause history [OPTIONS]
810
+
Try "show reboot-cause history -h" for help.
811
+
812
+
Error: Got unexpected extra argument (all)
813
+
```
814
+
**show reboot-cause history DPU1**
815
+
816
+
This command displays the history of the previous reboots up to 10 entry of DPU1. If DPU1 is powered down then there won't be any data in the DB and the "show reboot-cause history DPU1" output will be blank.
817
+
818
+
- Usage:
819
+
```
820
+
show reboot-cause history DPU1
821
+
```
822
+
823
+
- Example:
824
+
### Shown below is the output of the CLI when executed on the NPU
0 commit comments