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
[show_tech] Filter out a list of commands in generate_dump script which are not applicable to Supervisor (sonic-net#3646)
hat I did
On 202205 branch, execute "show techsupport " on Supervisor. It hung in the scripts which call "show queue counters". This PR filters out a list of command which are not applicable to Supervisor. FixesNokia-ION/ndk#60
How I did it
Modify generate_dump script by adding code to check if IS_SUPERVISOR, not to executes the "show queue counters".
And also return at the beginning of the following functions which are not applicable on Supervisor:
save_bfd_info()
save_bgp_info()
save_evpn_info()
save_frr_info()
Also fix some of the failure which are shown during the show techsupport.
a) check if file /etc//cron.d/logrote exists before access it in function disable_logrotate() and enable_logrotate()
b) check if directory /var/log/sai_failure_dump/ exists before using this directory.
Add "show reboot-cause history" to the generate_dump
Check if output of "show vrf" is empty, don't access the empty list with "awk" command
How to verify it
"show techsupport" shoudl work fine on Supervisor as well as on LC
Signed-off-by: mlok <[email protected]>
0 commit comments