Re: How to renew (update) data stored on a OID for a get request?

Simon Huebner <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Fraunhofer ISE
Message-ID <[email protected]>
Dave Shield wrote:
> On 12/02/2008, Simon Huebner <[email protected]> wrote:
>> But now i have a problem with the load routine?
>> With routine should i use to fill the table?
>>
>> netsnmp_create_table_data_row();
>> netsnmp_set_row_column() and so one doesn't work, or?
> 
> No - that's the API for the "create-dataset" framework.
> The template code should include a routine
>     hrSWInstalledTable_createEntry
>             which will add a new row to the internal table.
> 
> Call that (repeatedly) from within the load routine.
> 
> Dave

But how can i add data to the given row?

This is my first call:
row = hrSWInstalledTable_createEntry(table, c);

Now ..._createEntry creates index and data entry then returns the row.
But how i add the data to the entry? Modify the 
hrSWInstalledTable_createEntry routine and give data per argument?
Or modify entry with row->data->...? Or is there a routine for that?

SoFar Simon


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