I'm having some hard time finding examples of something relatively simple: At my job, I need to come up with a script to test various servers with curl and then get the outputs in a file.
The command to use is something along
$ time curl https://something.net
I need to run this command in multiple hosts, so here's how the process would look like :
1 - run script from local workstation
2 - script ssh to host 1 and runs curl ---> record the output
3 - script ssh to host 2 and runs curl ---> record the output
4 - etc …
5 - script retrieves all the outputs and writes them to a file in my local host.
What would be the easiest technology to use? examples are welcome.