Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by cengineer (Pilgrim)
on Aug 21, 2007 at 13:52 UTC ( [id://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 scrutinizing the Monastery: (5)
As of 2024-04-19 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found