in reply to Re: Net::Telnet::Cisco - command timed-out error
in thread Net::Telnet::Cisco - command timed-out error
Getting error:-use Net::Telnet::Cisco; my $cs = Net::Telnet::Cisco->new( Host => '10.10.1.1', Port => '7012', Prompt => '/(?m:^\W?[\w\/\d.:-]+[>#])/', Dump_Log => 'cisco.log', ); $username = "user"; $password = "pass"; $cs->waitfor_pause(1); $cs->print($username); print "user logged\n"; $cs->waitfor_pause(1); $cs->print($password); print "went thru\n"; # Execute a command my @cmd_output = $cs->cmd( 'show ver | inc Configuration' ); print @cmd_output; $cs->close;
line 23: my @cmd_output = $cs->cmd( 'show ver | inc Configuration' );user logged went thru command timed-out at c:\temp\dirA9AB.tmp\telnet-2-port-test.pl line 23 Press any key to continue . . .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Net::Telnet::Cisco - command timed-out error
by soonix (Chancellor) on Oct 22, 2014 at 09:04 UTC | |
by ArifS (Beadle) on Oct 22, 2014 at 15:43 UTC | |
by soonix (Chancellor) on Oct 23, 2014 at 06:48 UTC | |
by ArifS (Beadle) on Oct 24, 2014 at 13:52 UTC | |
by soonix (Chancellor) on Oct 26, 2014 at 15:41 UTC | |
|