[SNMP4J] Re:Timeout for snmp

仇金顺 qiujs at sc.mdcl.com.cn
Sat Oct 8 04:51:17 CEST 2005


Hi Frank,

 

       When  I am using TableUtils’s getTable(Target target, OID[]
columnOIDs, OID lowerBoundIndex, OID upperBoundIndex) method, (My calling
method is being synchronized ), I meet with a timeout problem.

 

         I used 

         SnmpConstants.version1   

         COMMUNITY = "public"

         target = new CommunityTarget();

         target.setTimeOut(6000);

 

  Question: When I am querying machines using snmp, if the snmp response
time for the monitoring host’s agent is slow (e.g. 100% cpu utilization or
maximum network bandwidth), my snmp request down not return after 6000 ms. 

 

I need the request to come back within 6000ms, how do I set the timeout for
the snmp engine?


Regards ,
Qiu



More information about the SNMP4J mailing list