Skip to content

Commit d623c25

Browse files
authored
[Mellanox][Smartswitch]Added dpu status output to dump (#3959)
1 parent a3101ea commit d623c25

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/generate_dump

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,6 +1343,7 @@ collect_mellanox() {
13431343
local platform=$(python3 -c "from sonic_py_common import device_info; print(device_info.get_platform())")
13441344
local platform_folder="/usr/share/sonic/device/${platform}"
13451345
local hwsku=$(python3 -c "from sonic_py_common import device_info; print(device_info.get_hwsku())")
1346+
local is_smartswitch=$(python3 -c "from sonic_py_common import device_info; print(device_info.is_smartswitch())")
13461347
local sku_folder="/usr/share/sonic/device/${platform}/${hwsku}"
13471348
local cmis_host_mgmt_files=(
13481349
"/tmp/nv-syncd-shared/sai.profile"
@@ -1404,6 +1405,9 @@ collect_mellanox() {
14041405
fi
14051406

14061407
save_cmd "get_component_versions.py" "component_versions"
1408+
if [[ $is_smartswitch == "True" ]]; then
1409+
save_cmd "dpuctl dpu-status" "dpu_status"
1410+
fi
14071411

14081412
# Save CMIS-host-management related files
14091413
local cmis_host_mgmt_path="cmis-host-mgmt"

0 commit comments

Comments
 (0)