sonic-buildimage/files/scripts
Vivek 7781399bb6
[201911][Mellanox] Collect MST dump before syncd restart on shutdown notification (#11742)
- Why I did it
Collecting MST dump before syncd restart on shutdown notification during a SAI failure

Dump can be found under:
root@sonic:/home/admin# ls -l /var/dump/mstdump/
total 10684
-rw-r--r-- 1 root root 5460332 Aug 15 18:41 mstdump_20220815_184143.tar.gz
-rw-r--r-- 1 root root 5473253 Aug 15 21:46 mstdump_20220815_214642.tar.gz

root@sonic:/home/admin# tar -xvzf /var/dump/mstdump/mstdump_20220815_214642.tar.gz
├── ir-gdb
│   └── core
└── mstdump
    ├── mstdump1
    ├── mstdump2
    ├── mstdump3
    └── mststatus

- How I did it
Checked for shutdown notification log in sairedis and used it to determine whether the shutdown is normal or due to SAI failure

- How to verify it
Simulated a SAI failure event and verified it. Verified it also on different reboots and config reload scenarios the dump is not generated

Signed-off-by: Vivek Reddy <vkarri@nvidia.com>
2022-08-29 16:09:26 +03:00
..
arp_update [swss] Enhance ARP Update to Call Sonic Cfggen Once (#5398) 2020-12-22 09:51:54 -08:00
configdb-load.sh [MultiDB] use sonic-db-cli PING and fix wrong multiDB API in NAT (#4541) 2020-05-09 18:16:48 -07:00
core_cleanup.py [201911][core_cleanup.py] Fix core file path; Improve code reuse (#5782) 2020-11-03 11:15:49 -08:00
sonic-netns-exec [sonic-netns-exec]: use "$@" to reflects all positional parameters as they were set initially (#4375) 2020-04-15 13:13:31 -07:00
supervisor-proc-exit-listener Enhanced Feature table to support 'always_enabled' value for state and auto-restart fields. (#6000) 2020-11-25 10:04:42 -08:00
swss.sh Flush RESTAPI DB upon config reload (#9092) 2021-10-28 16:06:28 -07:00
syncd.sh [201911][Mellanox] Collect MST dump before syncd restart on shutdown notification (#11742) 2022-08-29 16:09:26 +03:00