Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 1.01 KB

README.md

File metadata and controls

25 lines (14 loc) · 1.01 KB

MultipleServersExec

Bash Script to execute multiple commands in multiple servers at a time using SSH

Execution format: ./multiServerExec.sh Serversfile Commandfile

Note:

  1. Servers file contains list of servers, one server in each line.
  2. Command file contains list of commands to be executed.
  3. Script does not execute shutdown and Reboot commands on the server instead it will show warning ⚠.

Usage

Below file contains list of "Server Names/Server IP addresses" on which we want the script to be executed.

image

Below file contains list of commands that needs to be executed on the servers.

image

Script need to be executed in given format " ./multiServerExec.sh Serversfile Commandfile ", The output of the excution will be like below.

image