I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2010-04-19 10:33:01.832253-07 by asterix
Problems with "show tech" using the Net::Telnet Module
I've made a little script to capture the output of networking devices. Everything works fine, until I use the "show tech" command in an Cisco device. The script does not save anything form the "show tech", but I can see that the TELNET Session gets back some output. But I can't figure out how to save this output from "show tech" into a file. There is no problem with commands which produce smaller output. Here is the part, that does not work the way I want:


(P.S.: ":" is an replacement for the "greater sign")
$telnet-:open($ip);
my $prompt = $hostname."#";
$telnet -: prompt("/$prompt\$/");
@output = $telnet-:cmd(String =: "$command", Timeout=:30);
printf "@output\n\n"; # No output is using "Cisco's show tech"
Direct Responses: Write a response