This is a discussion on Snmpget calls being Threadsafe within the SNMP Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. --===============0207916875== Content-class: urn:content-classes:message Content-Type: multipart/alternative; ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
This is a multi-part message in MIME format.
--===============0207916875== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6FCE0.9A2C1BD4" This is a multi-part message in MIME format. ------_=_NextPart_001_01C6FCE0.9A2C1BD4 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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...=20 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. ------_=_NextPart_001_01C6FCE0.9A2C1BD4 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dus-ascii"> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = 6.5.7651.14"> <TITLE>Snmpget calls being Threadsafe</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P><FONT SIZE=3D2 FACE=3D"Trebuchet MS">Hi,</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Trebuchet MS">I am trying to poll certain MIB = data from two IP addresses (2 machines) at various intervals</FONT> <BR><FONT SIZE=3D2 FACE=3D"Trebuchet MS">These calls are handled by two = different threads.</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Trebuchet MS">What I mean is, I create a = thread pool to poll information from each of the IP addresses.</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Trebuchet MS">The problem I face is:</FONT> <BR> <FONT SIZE=3D2 = FACE=3D"Trebuchet MS">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</FONT></P> <P> <FONT SIZE=3D2 = FACE=3D"Trebuchet MS">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.</FONT></P> <P> <FONT SIZE=3D2 = FACE=3D"Trebuchet MS">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.</FONT></P> <BR> <P><FONT SIZE=3D2 FACE=3D"Trebuchet MS">I am not able to get why this = problem is arising…</FONT> <BR><FONT SIZE=3D2 FACE=3D"Trebuchet MS">I use synchronization mechanism = for my threads while they make the SNMP calls.</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Trebuchet MS">Is SNMP API threadsafe??? Also = can anybody be of help to resolve this problem???</FONT> <BR><FONT SIZE=3D2 FACE=3D"Trebuchet MS">Please let me know if more = inputs are needed… </FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Trebuchet MS">Regards,</FONT> <BR><FONT SIZE=3D2 FACE=3D"Trebuchet MS">Sri.</FONT> </P> <BR> <P><I><FONT COLOR=3D"#0000FF" SIZE=3D1 = FACE=3D"Arial">*********************************** ***********************= ************************************************** ***********************= ************************************************** ***********************= *****************</FONT></I></P> <P><I><FONT COLOR=3D"#0000FF" SIZE=3D1 FACE=3D"Arial">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.</FONT></I></P> <BR> </BODY> </HTML> ------_=_NextPart_001_01C6FCE0.9A2C1BD4-- --===============0207916875== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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=...057&dat=121642 --===============0207916875== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users --===============0207916875==-- |