RedHat iTOps Tube

Friday, June 29, 2012

problems writing script to turn off remote computers using ssh

Hello,



I have been trying to write a script in linux(Red Hat) to turn off remote computers using ssh. The problem I am facing right now is to determine which computers are already powered off. I was thinking of using the fping utility but realised that it's not available by default, so now I am lefr with the option of PING and i have no idea how to do that in a script, I mean how to parse the output of ping and use it to my benefit.



Thanks in advance for your help.