Skip to content

Commit c3c92a4

Browse files
authored
Skip saidump for Spine Router as this can take more than 5 sec (#2637)
To address sonic-net/sonic-buildimage#13561 skip saidump on T2 platforms for time-being.
1 parent 6fe8599 commit c3c92a4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/generate_dump

+4-1
Original file line numberDiff line numberDiff line change
@@ -1560,6 +1560,7 @@ main() {
15601560
save_cmd "show reboot-cause" reboot.cause
15611561

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

@@ -1643,7 +1644,9 @@ main() {
16431644
save_cmd "hdparm -i /dev/sda" "hdparm"
16441645
save_cmd "ps -AwwL -o user,pid,lwp,ppid,nlwp,pcpu,pri,nice,vsize,rss,tty,stat,wchan:12,start,bsdtime,command" "ps.extended"
16451646

1646-
save_saidump
1647+
if [[ "$device_type" != "SpineRouter" ]]; then
1648+
save_saidump
1649+
fi
16471650

16481651
if [ "$asic" = "barefoot" ]; then
16491652
collect_barefoot

0 commit comments

Comments
 (0)