in reply to Re^4: Net::Telnet::Cisco - command timed-out error
in thread Net::Telnet::Cisco - command timed-out error
Ah. I See. So you would have to send a "\n" or "\r" forst, and only then do the ->login().
The author of Net::Telnet::Cisco seems to have anticipated this problem, there is a send_wakeup setting. You could modify the code from your OP to
(don't know, wether you need to set the prompt, you'll see for yourself)my $cs = Net::Telnet::Cisco->new( Host => '10.10.1.2', Port => '7012', + Send_wakeup => 'connect', Dump_Log => 'cisco.log', );
The effect is, that, upon connecting, a newline is sent upon connection. Perhaps this works even with devices that don't need it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Net::Telnet::Cisco - command timed-out error
by ArifS (Beadle) on Oct 24, 2014 at 13:52 UTC | |
by soonix (Chancellor) on Oct 26, 2014 at 15:41 UTC | |
by ArifS (Beadle) on Oct 27, 2014 at 13:42 UTC | |
by soonix (Chancellor) on Oct 27, 2014 at 14:18 UTC | |
by ArifS (Beadle) on Oct 27, 2014 at 18:01 UTC | |
|