Does anyone know how to create a bash script that would SSH to a list of network devices, via IP addresses, and execute a list of commands?
The way I see this working is as follows:
- List of IP addresses exist in a text file
- Commands to be executed exist in a text file
- Bash script SSH to each IP address and executes commands
NOTE: I have not been able to find a response to this question in the list of other similar questions in this group. I am not a scripter, but would like to be able to be able to create a text file containing the commands that need to be entered on a network device, and then have that file executed on multiple network devices whose IP addresses are located in another text file. It would be great to be able to execute a bash script that allows me to enter a user and pass via SSH, connects to each IP address in the in the referenced text file, executes the command text file, and then echos a success or failure type response in another text file.
It's a bit complicated for me, but I would assume it would be rather straight forward for someone with scripting experience.
I appreciate all of the assistance, and would be willing to pay someone for their time. Just message me.