rnery has asked for the wisdom of the Perl Monks concerning the following question:
I am having some trouble with perl threads and snmp. What i am trying to do is to create a pool of threads in that each thread in the pool is making the same snmpget on a different host. Each thread establishes its own SNMP session naturally and has its own SNMP variables. The threads on the pool are waiting for ip addresses to work with. The thing is when the first ip address is available and the first thread starts to work it can't do the snmpget and it says "thread failed to start" because of it. I have made print on every variable possible and still don't get it, why can't each thread do an snmp get individually. Notice that as i have said each thread is creating it's own session and hence doing it's own snmpget.
To invoke the threads i do "use threads;" and to invoke snmp libraries i do "use SNMP;"help ?
Cheers
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem using threads and snmp
by BrowserUk (Patriarch) on Apr 15, 2008 at 16:09 UTC | |
by oko1 (Deacon) on Apr 15, 2008 at 21:12 UTC | |
|
Re: Problem using threads and snmp
by NetWallah (Canon) on Apr 15, 2008 at 21:06 UTC | |
by rnery (Initiate) on Apr 16, 2008 at 10:21 UTC | |
by BrowserUk (Patriarch) on Apr 16, 2008 at 12:19 UTC | |
by rnery (Initiate) on Apr 16, 2008 at 13:51 UTC | |
by NetWallah (Canon) on Apr 16, 2008 at 16:51 UTC | |
by BrowserUk (Patriarch) on Apr 16, 2008 at 15:33 UTC |