Skip to content

Creating an automated shell script that can bootup and execute the exact same commands across multiple remote servers and VM's, there by eliminating human error and promoting effectiveness.

License

Notifications You must be signed in to change notification settings

kelubia/Network-and-remote-server-automation-and-scripting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Network-and-remote-server-automation-and-scripting

Creating an automated shell script that can boot up and execute the same commands across multiple remote servers and VMs eliminates human error and promotes effectiveness. DESCRIPTION:

  • we are going to reset our vagrant configuration file via Vim; we will be adding the IP addresses and network settings we wish to use for our automated script before running a vagrant up to boot our new servers

01

List out our servers and the SSH options we will be using to time out our servers when experiencing connection errors. We are setting it to 2 seconds. We want sudoers to be able to run this script independently without any restriction in functionality or need for special privileges.

  • we will create a usage statement that will be built into a function.

  • store the return code or exit value into the SSH code and send error codes to standard error.

  • since we are executing on various systems, we don't want one failed server error to affect the other running codes. Easily remove failed server without affecting other running servers,

  • make sure we have /etc/host entries for servers. -02 02

  • ping the servers,

  • 03

  • 03

configure SSH Authentication, key-value pair using SSH-keygen and copy to servers 04 04

4b

  • Run the script and check that each command is executed as planned. 05 05

About

Creating an automated shell script that can bootup and execute the exact same commands across multiple remote servers and VM's, there by eliminating human error and promoting effectiveness.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages