I need to restart apache on a dozen servers. I can log into each one and do it or I can have one script on the first one do it for me. Can you help me out?
Server 1 has access to all the other servers through known hosts.
Manually I can run this:
ssh user@server2
service httpd restart
exit
...
ssh user@server100
service httpd restart
exit
How can I script this to run from server 1 to restart all my servers?
1 Answer