in reply to Re: Login to multiple devices using telnet and issue different commands
in thread Login to multiple devices using telnet and issue different commands
for my $cmd (@{$hosts{$host}{commands}}){ if(my @check = $telnet->cmd($cmd)){ my $response = join(" ", @check); print "response below \n"; print $response; print $log_fh "$ip $cmd successful\n"; }else{ print $log_fh "$ip Unable to Connect"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Login to multiple devices using telnet and issue different commands
by poj (Abbot) on Aug 26, 2015 at 07:00 UTC |