Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Can't get data from cisco router/switch when telnetting in via perl script.

by cengineer (Pilgrim)
on Aug 21, 2007 at 09:52 UTC ( #634086=note: print w/replies, xml ) Need Help??


in reply to Can't get data from cisco router/switch when telnetting in via perl script.

You can save a log of the input and output of session by defining Dump_Log in your telnet object. You can also save a log of your input to the switch by defining Input_Log. This might help you to better understand what's going on in the telnet session.
$tnet = Net::Telnet->new( Host => $host, Port => $port, Dump_Log => $dumplog, Input_Log => $inputlog, );
Take a look at the 'waitfor' method in Net::Telnet to get the response after your print
  • Comment on Re: Can't get data from cisco router/switch when telnetting in via perl script.
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2023-12-07 12:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (32 votes). Check out past polls.

    Notices?