Re: Question on Iterator model without having to setup a linked list

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/6/8 Ranganathan, Viji (NSN - US/Boca Raton) <[email protected]>:
>                      I observe that during snmpwalk, after the
> handler routine with MODE_GET fetches the correct data, the logic goes
> back again to get_first_data_point.

Remember that there is no such thing as an "snmpwalk" request.
This is simply a sequence of GETNEXT requests - one after the other.

For *each* GETNEXT request, the agent will call your 'get_first'
routine (once), followed by your 'get_next' routine (once for each row)
followed by the module handler.


> There are two rows and 24 columns.

> I just want to verify if this many number of calls to the first/next
> routines is normal.

It feels vaguely plausible, yes.

The calculation of exactly how many times each routine should be
called is left as an exercise for the student....


Dave

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
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.