Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Need help getting output from Telnet into a string or array

by pklausner (Scribe)
on Mar 19, 2012 at 16:12 UTC ( #960440=note: print w/replies, xml ) Need Help??


in reply to Re^2: Need help getting output from Telnet into a string or array
in thread Need help getting output from Telnet into a string or array

If your primary concern here is controlling the switch(es), not just dabbling with Perl for Perl's sake, I recommend looking at Rancid. It offers script wrappers for various vendors and models. You only supply the device command sequence, the scripts deal with login, prompts, output redirection etc.
  • Comment on Re^3: Need help getting output from Telnet into a string or array

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2019-09-18 03:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (220 votes). Check out past polls.

    Notices?