File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -1564,6 +1564,27 @@ collect_cisco_8000() {
1564
1564
echo " '/usr/share/sonic/device/${platform} ' does not exist" > /tmp/error
1565
1565
save_file /tmp/error sai false
1566
1566
fi
1567
+
1568
+ save_cmd " show platform versions" " platform.versions"
1569
+
1570
+ # run 'hw-management-generate-dump.sh' script and save the result file
1571
+ HW_DUMP_FILE=/usr/bin/hw-management-generate-dump.sh
1572
+ if [[ -x $HW_DUMP_FILE ]]; then
1573
+ ${CMD_PREFIX} $HW_DUMP_FILE $ALLOW_PROCESS_STOP
1574
+ ret=$?
1575
+ if [[ $ret -ne 0 ]]; then
1576
+ if [[ $ret -eq $TIMEOUT_EXIT_CODE ]]; then
1577
+ echo " hw-management dump timedout after ${TIMEOUT_MIN} minutes."
1578
+ else
1579
+ echo " hw-management dump failed ..."
1580
+ fi
1581
+ else
1582
+ save_file " /tmp/hw-mgmt-dump*" " hw-mgmt" false
1583
+ rm -f /tmp/hw-mgmt-dump*
1584
+ fi
1585
+ else
1586
+ echo " HW Mgmt dump script $HW_DUMP_FILE does not exist"
1587
+ fi
1567
1588
}
1568
1589
1569
1590
# #############################################################################
You can’t perform that action at this time.
0 commit comments