[SNMP4J] Agent - Dynamic Table - Advice

Frank Fock fock at agentpp.com
Tue Mar 27 00:13:45 CEST 2007


Hi Jothi,

SNMP does not provide any information beyond the scope
of a single request. So SNMP4J-Agent cannot provide such
info either.

Effective caching of table data can be implemented based
on timeouts for example. You can update the table only
if the last update was done 5 or more seconds ago.

Best regards,
Frank

Jothi P Neelamegam wrote:
> Hi All,
> 
> My SNMP4J based agent serves a dynamic table that needs fetching data 
> from the database to process GET/GETNEXT requests. As a result, the 
> response to snmpwalks (and equivalents) are bad as each snmpwalk is 
> internally translated into multiple GETNEXT queries and my agent is 
> actually fetching data from DB for each GETNEXT request. Even though the 
> data is dynamically varying, I would prefer fetching data from DB only 
> once for a snmpwalk (I can afford to trade off accuracy for speed here). 
> Is there a way in SNMP4J-Agent to recognize if a given GETNEXT request 
> is coming from say a snmpwalk or from  a standalone request like 
> snmpgetnext? If not, what would the best way to handle a situation like 
> this?
> 
> Thanks in Advance,
> Jothi
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the SNMP4J mailing list