Skip to content

Commit

Permalink
Add FW dump with new SAI implementation (sonic-net#1298)
Browse files Browse the repository at this point in the history
Mellanox SAI implementation of the sai dump is now extracting more information which previously provided by direct call to a Mellanox FW tool which is not longer required.

The new files created will be taken along with the new dump.
Remove MST dump as it is not required anymore.
  • Loading branch information
shlomibitton authored Dec 16, 2020
1 parent 5b90976 commit 12f03b1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/generate_dump
Original file line number Diff line number Diff line change
Expand Up @@ -517,11 +517,12 @@ collect_mellanox() {
${CMD_PREFIX}docker exec syncd tar Ccf $(dirname $sai_dump_filename) - $(basename $sai_dump_filename) | tar Cxf /tmp/ -
save_file $sai_dump_filename sai_sdk_dump true

local mst_dump_filename="/tmp/mstdump"
local max_dump_count="3"
for i in $(seq 1 $max_dump_count); do
${CMD_PREFIX}/usr/bin/mstdump /dev/mst/mt*conf0 > "${mst_dump_filename}${i}"
save_file "${mst_dump_filename}${i}" mstdump true
file_list_string=$(${CMD_PREFIX}docker exec -it syncd ls -l /tmp | grep sdkdump | awk '{print $9}' | tr -d '\r')
file_list_array=( $file_list_string )
for element in "${file_list_array[@]}"
do
docker cp syncd:/tmp/$element /tmp
save_file /tmp/$element sai_sdk_dump true
done
}

Expand Down

0 comments on commit 12f03b1

Please sign in to comment.