in reply to Re^7: Net::Telnet::Cisco - command timed-out error
in thread Net::Telnet::Cisco - command timed-out error
But, I am getting the following error-use Net::Telnet::Cisco; my ($host, $user, $pass) = qw(10.10.1.1 user pass); my $cs = Net::Telnet::Cisco->new( Host => $host, Port => $port, Dump_Log => 'cisco.log', Prompt => '/(?m:^\W?[\w\/\d.:-]+[>#])/', ); $cs->send_wakeup('connect'); $cs->login( $user, $pass ); print "username and password sent\n"; my @cmd_output = $cs->cmd( 'show cdp nei' ); print @cmd_output; $cs->close;
line 28: my @cmd_output = $cs->cmd( 'show cdp nei' );username and password sent command timed-out at c:\temp\dir6483.tmp\sendWake.pl line 28 Press any key to continue . . .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Net::Telnet::Cisco - command timed-out error- (send_wake)
by soonix (Chancellor) on Oct 27, 2014 at 14:18 UTC | |
by ArifS (Beadle) on Oct 27, 2014 at 18:01 UTC | |
by Anonymous Monk on Jul 26, 2017 at 13:26 UTC |