Commit 329fc22
authored
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'"
```1 parent 0ae2ec1 commit 329fc22
1 file changed
+43
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1688 | 1688 | | |
1689 | 1689 | | |
1690 | 1690 | | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
1691 | 1730 | | |
1692 | 1731 | | |
1693 | 1732 | | |
| |||
2122 | 2161 | | |
2123 | 2162 | | |
2124 | 2163 | | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
2125 | 2168 | | |
2126 | 2169 | | |
2127 | 2170 | | |
| |||
0 commit comments