Skip to content

Commit 3274b0e

Browse files
Added bf_drivers.log to zipped dump after execution of "show techsupport" (#2164)
What I did I add all bf_drivers*.log files into log folder of zipped filed created after perform the "show techsupport" How I did it I gather all bf_drivers*.log files and make copy from syncd container into /var/log folder How to verify it I verified it on device with performing of "show techsupport"
1 parent 8dee36c commit 3274b0e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

scripts/generate_dump

+29
Original file line numberDiff line numberDiff line change
@@ -1058,6 +1058,31 @@ collect_broadcom() {
10581058
copy_from_masic_docker "syncd" "/var/log/bcm_diag_post" "/var/log/bcm_diag_post"
10591059
}
10601060

1061+
###############################################################################
1062+
# Collect Barefoot specific information
1063+
# Globals:
1064+
# None
1065+
# Arguments:
1066+
# None
1067+
# Returns:
1068+
# None
1069+
###############################################################################
1070+
collect_barefoot() {
1071+
local bf_logs="/tmp/bf_logs"
1072+
$( rm -rf ${bf_logs} )
1073+
$( mkdir ${bf_logs} )
1074+
unset array
1075+
array=( $(docker exec -ti syncd ls -1 | grep bf_drivers.log) )
1076+
for y in "${array[@]}"; do
1077+
itstr=`echo ${y} | tr -d "\r\n"`
1078+
copy_from_masic_docker "syncd" "/${itstr}" "${bf_logs}"
1079+
done
1080+
1081+
for file in $(find /tmp/bf_logs -type f); do
1082+
save_file "${file}" log true true
1083+
done
1084+
}
1085+
10611086
###############################################################################
10621087
# Save log file
10631088
# Globals:
@@ -1371,6 +1396,10 @@ main() {
13711396

13721397
save_saidump
13731398

1399+
if [ "$asic" = "barefoot" ]; then
1400+
collect_barefoot
1401+
fi
1402+
13741403
if [[ "$asic" = "mellanox" ]]; then
13751404
collect_mellanox
13761405
fi

0 commit comments

Comments
 (0)