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 12:11 +0530, [email protected] wrote:
>        I am using net-snmp-5.2.1.2 and used mib2c.iterate.conf to
> generate code, i don't want to load entire table into agents memory,

You don't need to - the iterator helper will quite happily
work through the table a row at a time, and only needs to hold
the information relating to a maximum of two rows.


>  I am planning to retrieve the data row by row and return the value

That's exactly how the iterator helper works, yes.

>  in this what i noticed is all GET-NEXT request is coming as GET
> request,

That's the whole *point* of the iterator helper.
*It* takes care of deciding which row is needed for a particular
incoming request (whether this is a GET or a GETNEXT request).
You don't need to worry about this - just report the appropriate
column from the row that's passed to the handler.

>  Is there any way to find whether the request is GET or GET-NEXT.

Why do you need to know this?

Dave


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