Magnus, Thanks for your response! I guess this index list only used for getnext or getbulk operation. If no need to keep the indexes in memory, how can I do this?
Thanks, Barclay -----Original Message----- From: Magnus Fromreide [mailto:ma...@lysator.liu.se] Sent: 2012年12月14日 15:34 To: Zheng, Wenjie (Barclay) Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: Index of table in SNMP Agent On Fri, 2012-12-14 at 07:45 +0100, Zheng, Wenjie (Barclay) wrote: > Hi Everyone > > I have a question for SNMP table handler. > I am trying to setup a SNMP Agent to manage data from outside of SNMP > Agent. I try to use mib2c.iterate.conf to generate code, I found that > the table handler need to keep a index list of the table data, but as > my data is from out side of SNMP Agent, I am confused why SNMP need to > keep a copy of the index list, this index list might cause the data > inconsistent with out-side data when the list is mismatch with > out-side data. > > Is this a must that SNMP Agent need to keep a index list for table > handler? The snmp agent must be able to answer the questions "what are the index value and what data are addressed by value I" and "what index comes after index I" at any time but there is no need for it to keep the indices in memory. /MF ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders