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 ?
In reply to Telnet Switch by mvip
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |