Skip to content

Commit

Permalink
[Mellanox] Update mellanox dump generation to include SDK dumps (#1640)
Browse files Browse the repository at this point in the history
- What I did
Add Mellanox SDK dump output into techsupport in the generate_dump script.

- How I did it
Add a step to copy SDK dump output into techsupport in the Mellanox step in generate_dump script.

- How to verify it
Simulate SDK event on a Mellanox switch and check that dump has been added copied into the techsupport results.
  • Loading branch information
DavidZagury authored Jun 27, 2021
1 parent 38f8c06 commit 7a82c06
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/generate_dump
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,16 @@ collect_mellanox() {
${CMD_PREFIX}/usr/bin/mstdump /dev/mst/mt*conf0 > "${mst_dump_filename}${i}"
save_file "${mst_dump_filename}${i}" mstdump true
done

# Save SDK error dumps
local sdk_dump_path=`${CMD_PREFIX}docker exec syncd cat /tmp/sai.profile|grep "SAI_DUMP_STORE_PATH"|cut -d = -f2`
if [[ $sdk_dump_path ]]; then
copy_from_docker syncd $sdk_dump_path /tmp/sdk-dumps
for file in $(find /tmp/sdk-dumps); do
save_file ${file} sai_sdk_dump false
done
rm -rf /tmp/sdk-dumps
fi
}

###############################################################################
Expand Down

0 comments on commit 7a82c06

Please sign in to comment.