I'm controlling a lot of devices on which i need to batch run commands, it's working just fine sequentially but if i try to run all of them in parallel i'm getting plink network errors.
I'm pretty sure the actual network is doing just fine (it's a gigabit network dedicated to that, Nothing else running, there are 200 devices and the only thing getting send is "sudo reboot" so this hardly generates any traffic.
Is there any limit inherent to ssh or to putty i should know of? I'd like to go faster than doing it sequentially but i'm fine with running it in reasonably sized batches, i'd just rather set that batch size knowing where it's coming from instead of randomly through testing.
Currently i'm doing this:
for /F %i in (MYHOSTLIST.txt) do start plink -pw MYPASSWORD MYLOGIN@%i sudo reboot
This fails with plenty of errors after spawning the expected 200 ish command Windows, removing the start it works just fine but takes forever rebooting the devices in sequence.
plink
itself, or the waycmd
launches it. You could try to replaceplink
withcygwin
's ssh client and see what happens.