Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support of the pensando-dpu platform to generate-dump utility. (#…
…3557) #### What I did Add support of the pensando-dpu platform to generate-dump utility to collect platform-specific dumps on Pensando DPU. #### How I did it Extend platform-specific section of generate-dump utility #### How to verify it Run "show techsupport" command to generate dump file. Verify that `{dpu_container}_techsupport` directory exists in the created dump file. #### show techsupport command output logs:- ``` { cat }; docker exec syncd saidump | dummy_cleanup_method &> '/var/dump/sonic_dump_sonic_20240910_045531/dump/saidump'" mkdir: created directory '/root/dpu_dump' timeout --foreground 5m sudo docker exec polaris touch /data/techsupport//DSC_TechSupport_b08d.57cd.360f_2024-09-10_04-57-04_1725944224.tar.gz timeout --foreground 5m sudo docker cp polaris:/data/techsupport//DSC_TechSupport_b08d.57cd.360f_2024-09-10_04-57-04_1725944224.tar.gz /root/dpu_dump mkdir: created directory '/var/dump/sonic_dump_sonic_20240910_045531/polaris_techsupport' removed '/root/dpu_dump/DSC_TechSupport_b08d.57cd.360f_2024-09-10_04-57-04_1725944224.tar.gz' removed directory '/root/dpu_dump' timeout --foreground 5m bash -c "dummy_cleanup_method () { cat }; echo 10/09/2024 04:57:43:857701 | dummy_cleanup_method &> '/var/dump/sonic_dump_sonic_20240910_045531/dump/date.counter_2'" ``` ``` sonic_dump_sonic_20240910_045531/proc/iomem sonic_dump_sonic_20240910_045531/polaris_techsupport/ sonic_dump_sonic_20240910_045531/polaris_techsupport/DSC_TechSupport_b08d.57cd.360f_2024-09-10_04-57-04_1725944224.tar.gz sonic_dump_sonic_20240910_045531/core/ ``` ``` root@sonic:/home/admin# cd /var/dump/ root@sonic:/var/dump# ls sonic_dump_sonic_20240910_045531.tar.gz root@sonic:/var/dump# tar -xzf sonic_dump_sonic_20240910_045531.tar.gz root@sonic:/var/dump# cd sonic_dump_sonic_20240910_045531/ root@sonic:/var/dump/sonic_dump_sonic_20240910_045531# cd polaris_techsupport/ root@sonic:/var/dump/sonic_dump_sonic_20240910_045531/polaris_techsupport# ls DSC_TechSupport_b08d.57cd.360f_2024-09-10_04-57-04_1725944224.tar.gz root@sonic:/var/dump/sonic_dump_sonic_20240910_045531/polaris_techsupport# ``` #### /usr/local/bin/generate_dump -n output ``` { cat }; docker exec syncd saidump | dummy_cleanup_method &> '/var/dump/sonic_dump_sonic_20240910_050411/dump/saidump'" mkdir -p /root/dpu_dump docker exec polaris /nic/tools/collect_techsupport.sh rm -rf /root/dpu_dump mkdir -p /var/dump/sonic_dump_sonic_20240910_050411/dump timeout --foreground 5m bash -c "dummy_cleanup_method () { cat }; echo 10/09/2024 05:04:40:130209 | dummy_cleanup_method &> '/var/dump/sonic_dump_sonic_20240910_050411/dump/date.counter_2'" ```
- Loading branch information