[SNMP4J] Persistency in SNMP4J agent
Frank Fock
fock at agentpp.com
Wed Aug 16 23:34:54 CEST 2006
Hi Yaron,
Yaron Reichert wrote:
> Hey Frank ,
> 2 questions regarding snmp4j-agent:
>
> 1) TestAgent testAgent1 = new TestAgent(new File("SNMP4JTestAgentBC.cfg"),
> new File("SNMP4JTestAgentConfig.cfg"));
>
> what the "SNMP4JTestAgentBC.cfg" , "SNMP4JTestAgentConfig.cfg" are used to ?
The first stores the boot counter needed for SNMPv3.
The second is a file to store persistent managed object
values.
>
> i read that the first is something related to "boot-counter" - what exactly is it ?
It counts how often the agent has been rebooted.
If you do not count reboots, a manager that contacted
the agent before the last reboot, cannot continue
to contact the agent after the next reboot (because
of message is then out of time-window).
>
>
> 2) i wonder if the agent has built-in persistency ? (does it save the values to some file/s when shutting down the agent ?)
Yes. When shutting down the agent with Ctrl-C (SIGTERM)
it tries to write all persistent data to the specified
config file.
Best regards,
Frank
More information about the SNMP4J
mailing list