![]() NOTE: is the actual IP address of my Linux box which is always the same (reserved in the router setup). Shutdown -h +1 "System will shutdown in 1 minute." "Įcho "ERROR: Host $upshost didn't respond to ping." Here is the monitoring script code: #!/bin/bashĮcho "WARNING: Ping failed, trying again in 30 seconds. ![]() The UPS unit is setup to shut the power down after 10 minutes from power failure, giving plenty of time for the Windows machine to detect lack of response from Linux box and executing shutdown. It is supposed to shutdown this computer once the aforementioned Linux box stops responding to ping on the network (because it shuts down when power failure is detected). ![]() On another computer, also powered from the same UPS unit running headless Windows 10 server, I have setup a simple bash script (cygwin) running from Task Scheduler. On my network I have a Linux box that has a UPS unit connected via USB and maintained with software which makes the computer shut down when power failure occurs. I have a problem with my power failure monitoring scheme / automatic shutdown of Windows 10 computer. ![]()
0 Comments
Leave a Reply. |