Pankaj,

All you need is an SNMP Agent implementation and not the Proxy Forwarder.

1) Get familiar with SNMP Protocol & MIBs.
2) Register with IANA for enterprise number if your employer don't
have one already.
3) Find out the information that you want to expose from the Java application.
3) Define them in MIBs. Tools like MIB Designer
http://www.mibdesigner.com will help you write easily
4) Use AgenPro http://www.agentpp.com/agen/agen.html to generate the
SNMP4J code for the MIBs
5) Implement the generated methods i.e. call the Java application

HTH.

On Fri, May 15, 2009 at 6:38 PM, Pankaj Arora <[email protected]> wrote:
> To give more details:
> I'm writing a SNMP agent. The agent is getting GET requests from
> external
> SNMP compliant program. My agent should process the request (using the
> OID)
> and call another external program (written in java) to fetch this
> requested
> data. Then the agent should return this data to the SNMP compliant
> program
> which requested the data, using the response process.
> I am able to get the request forwarded to the TestAgent provided. I am
> not able to figure out how to hook responder so that for particular
> oid's I can use my code?
> Please give me some pointers.
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
> Behalf Of Pankaj Arora
> Sent: Friday, May 15, 2009 10:50 AM
> To: [email protected]
> Subject: [SNMP4J] SNMP agent implementation
>
> Hi,
>
> I am new to SNMP development. I have a requirement to create a proxy
> agent which gets the requests forwarded from SNMP and replies to them. I
> took the TestAgent example provided in snmp4j-agent package and ran it.
> I am at stage where when I do snmpWalk the request are getting forwarded
> to the TestAgent class, but I am not sure how to hook my code to reply
> to those requests. Can anyone of you provide some tutorials or
> instructions on how to proceed on this?
>
>
>
> Thanks,
>
> Pankaj Arora
>
> _______________________________________________
> SNMP4J mailing list
> [email protected]
> http://lists.agentpp.org/mailman/listinfo/snmp4j
> _______________________________________________
> SNMP4J mailing list
> [email protected]
> http://lists.agentpp.org/mailman/listinfo/snmp4j
>
_______________________________________________
SNMP4J mailing list
[email protected]
http://lists.agentpp.org/mailman/listinfo/snmp4j

Reply via email to