[SNMP4J] Implementing an agent
Frank Fock
fock at agentpp.com
Fri Nov 30 22:17:41 CET 2007
Hi,
There JavaDoc is the only documentation
about BaseAgent I know of.
You can use BaseAgent without bootCounter
and config file. But then, you will have
to overwrite the methods as shown below:
protected int getEngineBoots() {
// @TODO Add here code to retrieve the agent boot counter.
Otherwise
// SNMPv3 security will not work correctly.
return 0;
}
protected void setEngineBoots(int engineBoots) {
// @TODO Add here code to save the agent boot counter.
}
You can purchase commercial email support with
the conditions shown here:
http://www.snmp4j.org/snmp4j-support.pdf
More JavaDoc documentation will be added with
SNMP4J-Agent 1.2.
Best regards,
Frank
inliner683 at gmx.de wrote:
> Hello,
>
> I am currently developing an agent with SNMP4J.
> I already have looked at TestAgent.java and have
> implemented an own agent similar to it, having a
> simple MIB just for testing.
>
> It seems to me that the documentation is very poor,
> so is there any professional support or other documentation
> (the agent shall be used in production environment!)?
> None of the javadocs make it clear which of
> of the methods have to be called before starting the agent.
> For example if not calling setAgent(), init() or finishInit()
> before starting the agent, nothing works and one gets NullpointerExceptions.
> Same goes for the boot-counter and config files. There is a no-arg
> constructor ommitting these parameters, but if using this again NullPointerExceptions
> occur. So setting boot counter and config file is mandatory? Why isn't it written
> in javadoc? Implementing an agent is done by subclassing BaseAgent, but there's
> is no hint what additional steps have to be done (e.g. init, set config files etc.). Does
> any documentation exist which steps have to be taken to implement a minimal working
> agent?
>
> Thanks.
--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com
More information about the SNMP4J
mailing list