Skip to content

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

Notifications You must be signed in to change notification settings

gopal-borusu/MultipleServersExec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages