Skip to content

Commit

Permalink
Skip saidump for Spine Router as this can take more than 5 sec (#2637)
Browse files Browse the repository at this point in the history
To address sonic-net/sonic-buildimage#13561 skip saidump on T2 platforms for time-being.
  • Loading branch information
abdosi authored Jan 31, 2023
1 parent 6fe8599 commit c3c92a4
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 @@ -1560,6 +1560,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 @@ -1643,7 +1644,9 @@ main() {
save_cmd "hdparm -i /dev/sda" "hdparm"
save_cmd "ps -AwwL -o user,pid,lwp,ppid,nlwp,pcpu,pri,nice,vsize,rss,tty,stat,wchan:12,start,bsdtime,command" "ps.extended"

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

if [ "$asic" = "barefoot" ]; then
collect_barefoot
Expand Down

0 comments on commit c3c92a4

Please sign in to comment.