On 20 April 2012 07:47, Nguyen Dinh Phong <[email protected]> wrote:
> I'd like to know how to make the agent to generate the WarmStart trap.
How to generate a warmStart trap is easy - just call
send_easy_trap(1, 0);
Deciding *when* to send a warmStart is much harder.
Remember that this means that the agent is
"reinitializing itself such that neither the agent configuration
nor the protocol entity implementation is altered."
So it's not simply a matter of sending this trap when the
agent receives a HUP signal, or otherwise reloads/restarts.
The agent would need to remember all the configuration
settings from when it last restarted, compare these with
the current settings, and determine whether they are
different (coldStart) or the same (warmStart).
This is a non-trivial problem!
Which is why we've chickened out, and defined our own
trap NET-SNMP-AGENT::nsNotifyRestart, which doesn't
distinguish between the two cases.
Dave
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders