Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: SSH connection to 100 routers

by thanos1983 (Parson)
on Feb 23, 2018 at 11:23 UTC ( #1209822=note: print w/replies, xml ) Need Help??


in reply to SSH connection to 100 routers

Hello vasanth.easyrider,

I think you should be looking for Net::OpenSSH::Parallel. Alternatively you can create a foreach loop to connect to all nodes. I would not use password authentication if I was you I would use ssh key authentication (more secure).

Sample of code for Net::OpenSSH::Parallel can be found here Re: multiple machines disk space alert. Sample of code using foreach loop and Net::OpenSSH can be found here Re: Simple SSH based chat client.

Hope this helps. BR / Thanos

Seeking for Perl wisdom...on the process of learning...not there...yet!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2022-01-19 11:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (55 votes). Check out past polls.

    Notices?