Skip to content
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

Skip saidump for Spine Router as this can take more than 5 sec (#2637) #2671

Merged
merged 1 commit into from
Feb 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scripts/generate_dump
Original file line number Diff line number Diff line change
Expand Up @@ -1518,6 +1518,7 @@ main() {
save_cmd "show reboot-cause" reboot.cause

local asic="$(/usr/local/bin/sonic-cfggen -y /etc/sonic/sonic_version.yml -v asic_type)"
local device_type=`sonic-db-cli CONFIG_DB hget 'DEVICE_METADATA|localhost' type`
# 1st counter snapshot early. Need 2 snapshots to make sense of counters trend.
save_counter_snapshot $asic 1

Expand Down Expand Up @@ -1594,7 +1595,9 @@ main() {
done
fi

save_saidump
if [[ "$device_type" != "SpineRouter" ]]; then
save_saidump
fi

if [[ "$asic" = "mellanox" ]]; then
collect_mellanox
Expand Down