Hi Charles, SNMP4J-Agent supports both approaches you listed below. The different instrumentation techniques are explained in the SNMP4J-Agent-Instrumentation-HowTo.pdf which can be downloaded as part of AgenPro 2 from http://www.agentpp.com/agenpro2.zip
To update MIB (cache) data in in your SNMP4J-Agent, use the MOScalar.setValue or MOMutableTableRow.setValue methods. To update the MIB cache when a SNMP request is being processed, use the MOServer.addLookupListener. Best regards, Frank Charles McParland wrote: > Am new to SNMP4J and have a question about agent side > design. I'm using snmp to instrument a network simulation > package and would like to add my own agents to the simulation > code base. Have been looking through the sample code in the > dist. and things are starting to make sense. But, I don't yet have > a clear picture of how the agent framework connects to the > remainder of the target code. > > -Does the target environment call into the framework to > store values, update rows, etc. for possible queries that > might flow into the agent framework from the net? > -Or, does the agent call into the target environment when > is receives a particular query? > > Code is well documented, if anyone can point to the appropriate > classes, I'm guessing I can find the answer there. > > Thanks, > Chuck McP > _______________________________________________ > SNMP4J mailing list > [email protected] > http://lists.agentpp.org/mailman/listinfo/snmp4j -- AGENT++ http://www.agentpp.com http://www.snmp4j.com http://www.mibexplorer.com http://www.mibdesigner.com _______________________________________________ SNMP4J mailing list [email protected] http://lists.agentpp.org/mailman/listinfo/snmp4j
