Last active
September 27, 2018 16:17
-
-
Save pingec/36efe3f39b5be9bf94c46c00f93875d0 to your computer and use it in GitHub Desktop.
Ipmi watchdog to hard reset machine in case it freezes / crashes
This file contains hidden or 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
function Get-TimeStamp { | |
return "[{0:yyyy-MM-dd} {0:HH:mm:ss}]" -f (Get-Date) | |
} | |
function Watchdog-Set() { | |
"$(Get-TimeStamp) Initializing watchdog timer..." >> "$PSScriptRoot\log.txt" | |
& "$PSScriptRoot\ipmiutil.exe" wdt -a 1 -t 120 -e | |
} | |
Watchdog-Set | |
for () { | |
Start-Sleep -s 90 | |
& "$PSScriptRoot\ipmiutil.exe" wdt -r | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://ipmiutil.sourceforge.net/man.htm#iwdt
ftp://ftp.supermicro.com/utility/IPMICFG/Supermicro_Utility_User_Guide_IPMICFG.pdf
https://www.intel.com/content/dam/www/public/us/en/documents/product-briefs/ipmi-second-gen-interface-spec-v2-rev1-1.pdf