Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to the Net::Telnet::Cisco module to connect to my router. However, I am unable to get it to work. Typically I connect to my router with the following command.
The console port of the router is connected to a term server. foo is the hostname for the term server and 2011 is the port that is connected to.telnet foo 2011
Here is some simple code that I can't get to work. What am I doing wrong??
I can't believe I am having this much difficultly for something so simple.use Net::Telnet::Cisco; my $session = Net::Telnet::Cisco->new(Host => 'foo', Port => 2011); # This is just a simple cmd to see if it ever works my @output = $session->cmd('sh clock'); print @output; $session->close;
|Replies are listed 'Best First'.|
Re: Unable to get Net::Telnet::Cisco to connect to router
by shockme (Chaplain) on Nov 13, 2003 at 22:58 UTC