[SNMP4J] integrating SNMP4J with code from AgentPro

Frank Fock fock at agentpp.com
Tue May 10 20:55:00 CEST 2005


Hi Brian,

Yes, it works as you guessed. AgenPro will generate a single .java
file for each MIB module. The file will be named from the MIB module
name and it defines MOGroup class with a couple of inner classes for
the scalars and tables defined in the MIB module.

To integrate your MIB module into a SNMP4J-Agent agent you only
need to create an instance of the generated MOGroup and then call
registerMOs(server, null) on that instance. That's all.

I have not described this in detail yet, because I am thinking of further
automating this for the final version as it is automated for AGENT++
already.

Hope this helps. If you need more information, please do not hesitate
to contact me.

Best regards,
Frank

Brian Kirwan wrote:

>Hi,
>
>I need to build an agent supporting a proprietary MIB.  I have run the test agent and can interact with it fine from my SNMP manager and that's great.
>
>Now I have scanned through the AgentPro documentation and have a reasonable idea what it does.  But I can't see any description of where the code generated by AgentPro is integrated with the SNMP4J agent (I have gone through the mail archives etc.).  Should I expect that AgentPro generates classes for my proprietary MIB that implement the MOGroup interface so I can call the registerMOs() method like is done with snmpv2MIB, vacmMIB etc in an overridden version of the init() method of BaseAgent?  Is there somewhere this procedure is described?
>
>Thanks,
>Brian.
>_______________________________________________
>SNMP4J mailing list
>SNMP4J at agentpp.org
>http://lists.agentpp.org/mailman/listinfo/snmp4j
>
>  
>





More information about the SNMP4J mailing list