Hi, i would like to create a script that shuts down the system if the power fails, basicly the solaris box would load the script at startup.
Ping 192.168.1.100 every 20 secs
If cannot get responce 3 times in a row send init 0 to the system.
Simple but effective, as 192.168.100.1 wont be on the ups backup, so the solaris system will know the power is down and it will shutdown.
Im sure it wont be hard to do im just new to unix, could someone help me with this?