Hi Hardaker,
We are using the Advent Net API for doing snmp walk on snmp agents.
The below function is used to initiate a series of GET-NEXT operations
on node.
target.snmpGetNextList();
I have attached the block of code from our snmp walk function.
We have been using this code for many of our products and its working
fine.
But recently we have some issue with one of our snmp agent. We are
observing the below error during snmp walk in snmp logs.
Timed out. No more retries to "10.201.200.238:161". RequestID: 19128
We have done some investigation on this and we are suspecting this is
due to time-out during snmp walk.
I would like to know how to increase the time-out for SNMP GTE-NEXT/snmp
walk ? Do we have any method in API to set a higher value for time-out ?
Thanks for your help.
Regards,
Praveen
StringBuffer sb = new StringBuffer();
SnmpTarget target = new SnmpTarget();
if(version.equalsIgnoreCase(SNMPComSupervisor.V1))
{
target.setSnmpVersion(SnmpAPI.SNMP_VERSION_1);
}
else if(version.equalsIgnoreCase(SNMPComSupervisor.V2C))
{
target.setSnmpVersion(SnmpAPI.SNMP_VERSION_2C);
}
target.setTargetHost(remoteHost);
target.setCommunity(community);
target.setTargetPort(portNumber);
target.setObjectID(objId.toString());
int maxtry = 0;
while ( maxtry++ < 999) // Limit the max getnexts to 999
{
String result[] = target.snmpGetNextList();
}
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders