Skip to content

Commit

Permalink
Added syncd SAI dump to sysdump script (sonic-net#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiS authored and lguohan committed Sep 19, 2017
1 parent b48573f commit 85dd072
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/generate_dump
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,14 @@ main() {
save_redis "2" "COUNTERS_DB"

save_cmd "docker exec -it syncd saidump" "saidump"

local platform="$(/usr/local/bin/sonic-cfggen -v platform)"
if [[ $platform == *"mlnx"* ]]; then
local sai_dump_filename="/tmp/sai_sdk_dump_$(date +"%m_%d_%Y_%I_%M_%p")"
docker exec -it syncd saisdkdump -f $sai_dump_filename
docker cp syncd:$sai_dump_filename /tmp/
save_file $sai_dump_filename sai_sdk_dump true
fi

$RM $V -rf $TARDIR
$MKDIR $V -p $TARDIR
Expand Down

0 comments on commit 85dd072

Please sign in to comment.