2021-08-17 14:26:04 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
systemctl stop nokia-watchdog.service
|
|
|
|
sleep 2
|
|
|
|
echo "w" > /dev/watchdog
|
|
|
|
kick_date=`date -u`
|
|
|
|
echo "last watchdog kick $kick_date" > /var/log/nokia-watchdog-last.log
|
2021-10-14 15:47:12 -05:00
|
|
|
rm -f /sys/firmware/efi/efivars/dump-*
|
2022-06-18 12:47:49 -05:00
|
|
|
touch /etc/opt/srlinux/devmgr_reboot_cause.done
|
|
|
|
rm -f /etc/opt/srlinux/reboot-cause.txt
|
2021-08-17 14:26:04 -05:00
|
|
|
sync
|
2022-02-25 21:57:38 -06:00
|
|
|
echo "Rebooting all Linecards"
|
|
|
|
python3 -c 'import sonic_platform.platform; platform_chassis = sonic_platform.platform.Platform().get_chassis(); platform_chassis.reboot_imms()'
|
2021-08-17 14:26:04 -05:00
|
|
|
/sbin/reboot
|