On Sat, 25 Dec 2004 10:00:25 -0500 Alex wrote:
AK> Hi, is there an example?
There are lots of examples of iterator modules in the code. A grep on
netsnmp_register_table_iterator will turn up several. One of the simplest is
agent/mibgroup/mibII/vacm_context.c
AK> What do I do the get-next off?
@lists.sourceforge.net
Subject: Re: Help: get-next for iterate_access
On Wed, 22 Dec 2004 18:46:24 -0500 Alex wrote:
AK> This is all I do. Unless the function returns NULL this function is
called
AK> forever. If I return NULL I get a call to get but for the next column
in a
AK> table an
On Wed, 22 Dec 2004 18:46:24 -0500 Alex wrote:
AK> This is all I do. Unless the function returns NULL this function is called
AK> forever. If I return NULL I get a call to get but for the next column in a
AK> table and not for next instance in the same column.
You should set the index and return
I generated code with:
mib2c -c mib2c.iterate_access.conf IBRIX-MIB::ibrixMibs.1
My MIB has a table (read only) with 3 columns. The table index (called
fsName) is a DisplayString.
I changed the code so I can do snmp-get, but snmp-get-next is not working.
This is the generated code and I change