GetNext index problem

"Rotem Tzuk" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi
 
I have implemented a MIB that includes a table.
I use the iterator functions as shown in the example MIB.
I have 2 rows in my table each refers to a file that holds the data.
My iterator handlers set the appropriate file name in the
my_data_context. 
I extract the file name in the MIB handler by calling
netsnmp_extract_iterator_context.
 
When I run snmpwalk I get all my data as expected - both rows are there.
 
When I try to get a specific index by calling
snmpgetnext -v2c -c public localhost MY-MIB::myValue.1
or 
snmpgetnext -v2c -c public localhost MY-MIB::myValue.2
 
 I always get the first value - for some reason the index is ignored.
 
Tracing the MIB handler - file name extracted form
netsnmp_extract_iterator_context is always the first file.
My MIB handler is called only once (which is OK).
 
 
Can you provide some hint for wrong implementation of table indexing or
better way to call snmpgetnext?
 
 
thanks in advance
Rotem

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

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