[ First - *please* don't mail me privately, without copying
any responses to the mailing list. I don't have the time
or inclination to offer private, unpaid, SNMP consultancy.
Keep discussions to the list, where others can both learn
and offer advice. Thanks. ]
On 31/01/2008, Shardul Kumar, Chennai <[EMAIL PROTECTED]> wrote:
>
> Hi Dave,
> Find my file as attachment....
> I m using MIB soft browser to send my GET request...
I think I see the problem.
One of the features of the table_data_set helper is that the
list of rows is maintained by the helper itself. So when it
receives a request, it knows which rows of the table are
valid, and hence whether or not to return any values.
With the code you posted, you set up an empty table,
but don't put anything into it. The call to populate the
table is made in your handler routine, which is only called
*after* the data_set helper has already processed the request.
But because the table is empty, the helper "knows" that there
isn't any data to report, so will never call your handler routine.
Try moving the add_shardulTable_rows() call into the initialisation
routine, rather than your handler.
In fact, this particular helper deals with the contents of the
table automatically, so you don't actually need your own handler
routine at all.
Dave
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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