RE: SNMP Agent engineboot

"Zheng, Wenjie (Barclay)" <[email protected]>
Newsgroups gmane.network.net-snmp.devel,gmane.network.net-snmp.user
Message-ID <A8F658F27E2A06459025251CA0A460060F4E9B195A@FRMRSSXCHMBSA2X.dc-m.alcatel-lucent.com>
Hi Dave

Thanks for your response!
I am using net-snmp provided agent. But I didn't aware that snmp agent has this functionalty, and from my test result. It's not working.

I didn't read the snmpv3_store thoroughly, is the old engineboots saved in the config file?

Thanks,
Barclay

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 ownagent 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.