I need some assistance.
I wrote a script that takes an array of IP addresses, and in a foreach
loop uses a subroutine to make a few SNMP connections, and writes
results to a flat file.(snipet below)
For 1000 IP addresses, it takes 17 minutes. I wonder if there's a way
to fork 10-20 (at a time) (subroutine) processes so I can process 10
devices at a time.
I ask because some of our locations have 4000+ devices, and would take
well over an hour to gather data linearly.
-Mike
Loop that calls sub:
foreach $ip (@cmip){
if($ip ne '0.0.0.0'){
&pollmodem($ip,$com);
}
}
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>