Re: SNMP Agent engineboot

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.devel,gmane.network.net-snmp.user
Message-ID <CAKoMtGbNZo9iZePrdKMn2Z_9B2d=kWVY6MvkxUYgPag-pS_QCQ@mail.gmail.com>
On 7 January 2013 02:45, Zheng, Wenjie (Barclay)
<[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.