On 7 January 2013 02:45, Zheng, Wenjie (Barclay)
<barclay.zh...@alcatel-lucent.com> wrote:
> What I did is to store the engineboot somewhere else from Agent,
> when agent restarts will read the last engineboot and increase 1,
> and response with new engineboot=2

But that's exactly what the Net-SNMP library should be taking care of for you.
You shouldn't need to do this yourself - it's already handled by the
shutdown code.
    (see snmplib/snmpv3.c:snmpv3_store())

If this isn't happening, then there's probably something wrong with
your agent code
(or else the agent isn't being shut down cleanly)

I really would suggest that you strongly consider using the Net-SNMP provided
agent framework, which is known to work correctly.   Re-implementing your own
agent from scratch seems an unnecessary duplication of effort

Dave

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to