Skip to content

Commit 7a82c06

Browse files
authored
[Mellanox] Update mellanox dump generation to include SDK dumps (#1640)
- 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.
1 parent 38f8c06 commit 7a82c06

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scripts/generate_dump

+10
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,16 @@ collect_mellanox() {
779779
${CMD_PREFIX}/usr/bin/mstdump /dev/mst/mt*conf0 > "${mst_dump_filename}${i}"
780780
save_file "${mst_dump_filename}${i}" mstdump true
781781
done
782+
783+
# Save SDK error dumps
784+
local sdk_dump_path=`${CMD_PREFIX}docker exec syncd cat /tmp/sai.profile|grep "SAI_DUMP_STORE_PATH"|cut -d = -f2`
785+
if [[ $sdk_dump_path ]]; then
786+
copy_from_docker syncd $sdk_dump_path /tmp/sdk-dumps
787+
for file in $(find /tmp/sdk-dumps); do
788+
save_file ${file} sai_sdk_dump false
789+
done
790+
rm -rf /tmp/sdk-dumps
791+
fi
782792
}
783793

784794
###############################################################################

0 commit comments

Comments
 (0)