[SNMP4J] Having Agent respond to SNMP get requests

Frank Fock fock at agentpp.com
Sun Sep 13 21:48:00 CEST 2009


Hi Pradip,

pradip de wrote:
> 1) Is it possible to intercept a snmpget packet in the TestAgent code and
> manually construct its reply with the data that I want to send out? or,

Why would you want to do that?
If you want to write your own agent framework, you
should start with SNMP4J only.

> 2) Should I have to map the measurement data that I want to use into a MIB
> and then have the Agent use that to reply to a snmpget?

That's the way to go. There are a lot of approaches to
instrument the agent. The most popular are described in the
SNMP4J-Agent-Instrumentation-HowTo PDF coming with AgenPro.

Regards,
Frank


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




More information about the SNMP4J mailing list