RE: clarification needed for net-snmp-5.2.1.2 mib2c.iterate.conf

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Tue, 2005-11-15 at 15:06 +0530, [email protected] wrote:
> I am working with an application which will retrieve only row from the
> device at a time.

That's fine - this is exactly how the iterator works.

>  So I am not able to load the entire table whenever the request comes.

Don't worry - you don't have to.

>  What I have understood after taking updTable as refrence that
> udpTable_load function is loading entire table during the query

But it's not the iterator helper which is doing this.  That's the
realm of the cache helper (see the end of the init routine).
In fact, given that the table is being loaded into the agent, the
iterator isn't actually a very sensible choice of helper - I'd
really like to rework this table to use the 'tdata' helper instead.


Forget about the cache-related stuff - concentrate on the
'get_{first,next}' routines, and the handler itself.
The 'get_first' routine should retrieve the first row
from your device - the 'get_next' routine should move
on to the next one (until there are no more to consider).

The handler itself can either use whatever information has been
stored for the relevant row - or query the device directly.
Note that the 'data_context' parameter doesn't need to contain
the full details of the row - just sufficient information for
the handler to be able to retrieve the full contents.  The
easiest approach is to pass the per-row data structure around
all the time, but you're perfectly free to probe the device
directly.

Dave

> 
> Confidentiality Notice 
> 
> The information contained in this electronic message and any
> attachments to this message are intended
> for the exclusive use of the addressee(s) and may contain confidential
> or privileged information. If
> you are not the intended recipient, please notify the sender at Wipro
> or [email protected] immediately
> and destroy all copies of this message and any attachments.
> 

Generosity Notice

The information contained in this electronic message (which should
have no attachments) is intended for the use of anyone who might find
it useful, and contains no confidential or privileged information.
If you are not the intended recipient, please do *not* notify the
sender or anyone at the University of Liverpool.  You may retain
or destroy all copies of this message, as you see fit.


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
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.