forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[devices]: Watchdog enable/disable in DellEMC S6100 (sonic-net#2730)
- Loading branch information
Showing
4 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
platform/broadcom/sonic-platform-modules-dell/s6100/scripts/platform_watchdog_disable.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
#This script is used to disable SMF Watchdog Timer | ||
|
||
wd_status=-1 | ||
enabled=0 | ||
|
||
# Disable Watchdog if enabled | ||
wd_status=$(io_rd_wr.py --get --offset 0x207 | cut -d " " -f3) | ||
|
||
if [[ $wd_status -eq $enabled ]]; then | ||
echo "Disabling Watchdog Timer.." | ||
io_rd_wr.py --set --val 1 --offset 0x207 | ||
fi |
8 changes: 8 additions & 0 deletions
8
platform/broadcom/sonic-platform-modules-dell/s6100/scripts/platform_watchdog_enable.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
#This script is used to enable SMF Watchdog Timer | ||
|
||
# Set watchdog to 180 seconds | ||
io_rd_wr.py --set --val 3 --offset 0x206 | ||
|
||
# Enable watchdog timer | ||
io_rd_wr.py --set --val 0 --offset 0x207 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters