I have registered my table with netsnmp_register_table to implement my own
getnext.
Every thing seems to be working fine except snmpgetnext request with
multiple oid  returns
only first oid and its value in response PDU. Any guesses ? my code loops
over

 for (request = requests; request; request = request->next) {

to get all the oids in the varbind list of request PDU and set varbind with
correct
value using snmp_set_var_typed_value() in return but in snmpgenext cli I see
only first oid
value. Checked the same with ethereal  for multiple oids in request PDU only
first oid value is returned in response.



Thanks......





On Wed, Oct 19, 2011 at 1:38 PM, Dave Shield <[email protected]>wrote:

> On 19 October 2011 08:57, Ravi Kumar <[email protected]> wrote:
> > Can you please point me the function or code where this conversion is
> > happening with respect to netSnmpHostsTable.
>
> This is probably handled within 'netsnmp_table_iterator_helper_handler'
> (agent/helpers/table_iterator.c).    That's at the heart of the
> iterator-based
> table implementations.
>
>
> > what if some one wants to implement his own getnext functionality ?
>
> Then register the table using "netsnmp_register_table"
>
> The point of using one of the various table helpers is to take
> advantage of the stuff that's handled automatically.   If you
> don't want to do this, then simply don't use one of those
> particular helpers.
>
> Dave
>
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Ciosco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to