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 ?
CheersIn reply to Problem using threads and snmp by rnery
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |