Skip to content

Commit

Permalink
Fix call for spanning-tree commands in dump script (sonic-net#3723)
Browse files Browse the repository at this point in the history
What I did
Fix the calls for spanning-tree commands in dump script.
During call to generate techsupport, we can see that the spanning tree commands fail:

.
Error: No such command "spanning_tree".
timeout --foreground 5m bash -c "dummy_cleanup_method ()
.
How I did it
Change from show spanning_tree to the actual command show spanning-tree

How to verify it
Call show techsupport
  • Loading branch information
DavidZagury authored Feb 3, 2025
1 parent 6d95d9b commit 9d273f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/generate_dump
Original file line number Diff line number Diff line change
Expand Up @@ -2209,10 +2209,10 @@ main() {
wait

save_cmd "stpctl all" "stp.log"
save_cmd "show spanning_tree" "stp.show"
save_cmd "show spanning_tree statistics" "stp.stats"
save_cmd "show spanning_tree bpdu_guard" "stp.bg"
save_cmd "show spanning_tree root_guard" "stp.rg"
save_cmd "show spanning-tree" "stp.show"
save_cmd "show spanning-tree statistics" "stp.stats"
save_cmd "show spanning-tree bpdu_guard" "stp.bg"
save_cmd "show spanning-tree root_guard" "stp.rg"

save_cmd "ps aux" "ps.aux" &
save_cmd "top -b -n 1" "top" &
Expand Down

0 comments on commit 9d273f1

Please sign in to comment.