Snmpget calls being Threadsafe

"Srivastava, Namburi (IE10)" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <7BADC3AE4B177E4EB91BFF3E227E6BDC2394D3@IE10EV801.global.ds.honeywell.com>
Hi,

I am trying to poll certain MIB data from two IP addresses (2 machines)
at various intervals
These calls are handled by two different threads.

What I mean is, I create a thread pool to poll information from each of
the IP addresses.

The problem I face is:
	1.  If I am polling from only one IP address, things work pretty
fine.  I get the responses at intervals set for the threads to execute
	2.  If I am polling from more than one IP address.  The SNMP Get
calls work fine with One IP Address and for the rest of the IP
Addresses, it works fine just one time and then onwards returns any of
the possible error codes (SNMPGET Error codes) like say Param Missing,
TIMEOUT, OID not found etc etc.  Basically snmpget call fails for the
second IP Address onwards.

	3.  However one observation in a two IP Address set up is that
whever I stop the polling from the first IP address for which the data
is being received at regular intervals, the second or the leftover IP
addresses starts responding properly henceforth.


I am not able to get why this problem is arising...
I use synchronization mechanism for my threads while they make the SNMP
calls.

Is SNMP API threadsafe??? Also can anybody be of help to resolve this
problem???
Please let me know if more inputs are needed... 

Regards,
Sri.


************************************************************************
************************************************************************
************************************************************************
*****
This e-mail, and any attachments thereto, are intended only for use by
the addressee(s) named herein and may contain privileged and/or
confidential information. If you are not the intended recipient of this
e-mail, you are hereby notified that any dissemination, distribution or
copying of this e-mail, and any attachments thereto, is illegal and
strictly prohibited. If you have received this e-mail in error, please
immediately notify me by telephone and permanently delete the original
and any copy of any e-mail and any printout thereof.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.