if its just a single command, parallel[1] works great:
parallel --tag 'ssh {} uptime' ::: host{1..10}
1. https://www.gnu.org/software/parallel/ parallel --tag 'ssh {} uptime' ::: host{1..10}
1. https://www.gnu.org/software/parallel/ myfunc() {
echo stuff;
# More stuff
}
export -f myfunc
parallel -Shost{1..10} --tag --env myfunc --nonall myfunc