Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: SSHing in multiple servers and execute command on each

by soonix (Canon)
on Jun 27, 2018 at 09:17 UTC ( #1217492=note: print w/replies, xml ) Need Help??


in reply to SSHing in multiple servers and execute command on each

When I wrote ciscodump - dump config info from routers into files, which does a similiar task, I didn't know about Net::OpenSSH::Parallel, so I took the iterative approach. You'd probably have to remove the "enable" command (more or less a second login), but much of the rest should work for you, too.
  • Comment on Re: SSHing in multiple servers and execute command on each

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1217492]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2020-08-04 03:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (31 votes). Check out past polls.

    Notices?