Wednesday, February 3, 2016

shutdown a datacenter snippet

 sadly eof functions are working well, so a do for loop isn't my friend.  
   
 #!/bin/bash  
   
 # sun  
 ssh -l root sun8system "sh -c \"shutdown -y -i5 -g0 \"";  
   
 # hp  
 ssh -l root hpuxoldsystem "sh -c \"shutdown -hy 0 \"";  
   
 # linux  
 ssh -l root linuxsystem "bash -c \"shutdown -h now \"";  

No comments: