I have 10 source machines and 10 destination machines. Each of those source machines need to connect to each of those destination machines.
I wrote a shell script which tests the telnet connectivity from one source machine to ten destination machines and this script is working. But I still have to first open the ten source machines in ten putty windows and run that script in each of them.
Any ideas on how can I run a single script from a single machine that will test the connections between all 100 source-destination combos?
ssh
to log into each of the 10 source machines, and then execute a script there totelnet
into each of the destination machines. That requiresssh
setup on the 10 source machines (after all, you can use putty...). If you don't have that, you need something else to automate. If you only havetelnet
, you can combine it withexpect
, but I really recommend usingssh
instead.