help needed with root oid and getnext operation

"EYRE Bernadette" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <734E4FE8BD36FA44B43D6DDC9EC9482402436B15@USDALSMBS05.ad3.ad.alcatel.com>
Hello snmp coders and users,

I'm lost please help shed some light.

I have an subagent which registers organization root oid (several tables and scalars)
when I run snmpwalk on one of the columns of one of the tables the
net-snmp master agent calls my handler with GETNEXT mode first
and then with GET mode.

my questions:
1 - what am I expected to return for GETNEXT call? Do I return the index of the next valid object instance
  or the actual value of the first valid object instance?
2 - if I'm expected to return a value as a reply to GETNEXT call, why then my subagent is called again with GET mode?
3 - if I'm expected to return only the index (modified oid?) of the next valid instance, do I modify the
 name field of the netsnmp_variable_list struct? 

4 - when snmpget command is called on one of the columns of a table do I return all the instances of that column? If so do
I create a list of variables by calling snmp_varlist_add_varibale() and return back the list? 

Thank you for your help 
Bernadette

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H

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