Bash Script to execute multiple commands in multiple servers at a time using SSH
Execution format: ./multiServerExec.sh Serversfile Commandfile
Note:
- Servers file contains list of servers, one server in each line.
- Command file contains list of commands to be executed.
- Script does not execute shutdown and Reboot commands on the server instead it will show warning ⚠.
Below file contains list of "Server Names/Server IP addresses" on which we want the script to be executed.
Below file contains list of commands that needs to be executed on the servers.
Script need to be executed in given format " ./multiServerExec.sh Serversfile Commandfile ", The output of the excution will be like below.