I have a remote AIX server running on a generator. Many times the generator goes out and I only have a window of 20 mins with the network up and 45 mins the server is powered. I need help creating a script where it goes out and checks the network every 10 mins and checks if the network is up. If the network is up thats fine. If the script detects the network is down, then I want the script to check the network in 5 mins to make sure the network has come back up or not and then repeat the same step; check it again in 5 mins. If the network has been down for 20 mins, then I want the script to shutdown the server before the generator runs out of power. I need this server to always perform a clean shutdown and not to abrubtly shutoff because the power goes out.