mvip has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I have some code for connecting to a router (cisco router). I would like to modife that code so i can connect to a Dell switch and make some chenges ... here is what iv got for now
use Net::Telnet; $device = "192.168.6.2"; my $session = Net::Telnet->new(Host => "$device", Input_log => "switchevi.log", ); $session->login('username', 'password'); # Execute a command @output = $session->cmd('some command ...'); print "@output\n"; print " ======================================================\n"; $session->close;
but i have error saying ... "timed-out waiting for login prompt at telnetswitchproba.pl line 8". How can i fix this ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Telnet Switch
by VinsWorldcom (Prior) on Aug 29, 2013 at 13:11 UTC | |
by mvip (Acolyte) on Aug 30, 2013 at 06:08 UTC |