File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -939,6 +939,32 @@ collect_broadcom() {
939
939
copy_from_masic_docker " syncd" " /var/log/bcm_diag_post" " /var/log/bcm_diag_post"
940
940
}
941
941
942
+ # ##############################################################################
943
+ # Collect Cisco-8000 specific information
944
+ # Globals:
945
+ # None
946
+ # Arguments:
947
+ # None
948
+ # Returns:
949
+ # None
950
+ # ##############################################################################
951
+ collect_cisco_8000 () {
952
+ trap ' handle_error $? $LINENO' ERR
953
+ local platform=$( show platform summary --json | python -c ' import sys, json; \
954
+ print(json.load(sys.stdin)["platform"])' )
955
+
956
+ if [ -d /usr/share/sonic/device/${platform} ]; then
957
+ pushd /usr/share/sonic/device/${platform} > /dev/null
958
+ for file in $( find . -path " ./*plugin*" -prune -o -path " ./*.xml" -prune -o -path " ./*.yaml" -prune -o -print) ; do
959
+ save_file ${file} sai false
960
+ done
961
+ popd > /dev/null
962
+ else
963
+ echo " '/usr/share/sonic/device/${platform} ' does not exist" > /tmp/error
964
+ save_file /tmp/error sai false
965
+ fi
966
+ }
967
+
942
968
# ##############################################################################
943
969
# Save log file
944
970
# Globals:
@@ -1235,6 +1261,10 @@ main() {
1235
1261
collect_broadcom
1236
1262
fi
1237
1263
1264
+ if [ " $asic " = " cisco-8000" ]; then
1265
+ collect_cisco_8000
1266
+ fi
1267
+
1238
1268
# 2nd counter snapshot late. Need 2 snapshots to make sense of counters trend.
1239
1269
save_counter_snapshot $asic 2
1240
1270
You can’t perform that action at this time.
0 commit comments