Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: SSH connection to 100 routers

by eighty-one (Curate)
on Feb 26, 2018 at 15:06 UTC ( #1209978=note: print w/replies, xml ) Need Help??


in reply to SSH connection to 100 routers

There is a tool called rancid that handles this via expect. The expect man page is actually pretty good and should give you a decent overview of what it can do.

I think the rancid devs use the shell version of expect via a bash script (I haven't looked in quite a while so I'm not sure).

CPAN has a few Expect modules. Rex::Helper::SSH2::Expect looks interesting but I have no experience with it.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2021-10-16 09:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (69 votes). Check out past polls.

    Notices?