I have tried snmpget to query a get request and snmpwalk for getNext.

Shuki

-----Original Message-----
From: Dave Shield [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 07, 2005 11:44 AM
To: sasson, shuki
Cc: [email protected]
Subject: RE: Cannot find an adquest mib2c configuration file for travesing
large tables. --- Does Net-SNMP fit to real time environment?

On Fri, 2005-10-07 at 11:23 -0400, sasson, shuki wrote:

> I have tried to apply the netsnmp_register_table() as you suggested in
> previous email.
> However the table_handler was not called for any Get Request for a table
> entity....                             I'll be thankful if you can
> verify that this is working on your side using a simple table.

I can confirm that a table registered with 'netsnmp_register_table()'
*does* invoke the handler with MODE_GET when queried using 'snmpget',
and with MODE_GETNEXT when queried using 'snmpwalk' or 'snmpgetnext'.
Exactly as expected.

What command did you use to query the table?



>                 It was called for a GetNext with a junk request.

Remember that when walking a table, the user will typically start
from the root of the table - i.e. not including any index values.
It's up to the handler to recognise this situation, and return
the first entry in the table.

The specialist table helpers will handle this for you.  But if
you're working with the "raw" table, then you need to do this
yourself.   That's part of the simplicity/efficiency tradeoff
I was talking about.


Dave


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to