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