Skip to content

Commit

Permalink
Skip saidump for Spine Router as this can take more than 5 sec (sonic…
Browse files Browse the repository at this point in the history
…-net#2637)

To address sonic-net/sonic-buildimage#13561 skip saidump on T2 platforms for time-being.
  • Loading branch information
abdosi authored and kenneth-arista committed Feb 10, 2023
1 parent e61c5ec commit 41c99c8
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit 41c99c8

Please sign in to comment.