Re: Extending spin lock concept to a table column

"andre robalo" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
I'm sorry! I didn't want to sound lazy, but sometimes we ask questions when
we should stop and think a little.

The answer was simple after all.

In the first time I do :

               setspinLock = 1;
               netsnmp_set_row_column(rowData, COLUMN_SPINLOCK,
ASN_INTEGER,&setspinLock , sizeof(setspinLock));

When I want to increment the spinlock value, I do:

                setspinLock = *((int *) data->data.voidp);
                setspinLock ++;
                netsnmp_set_row_column(rowData, COLUMN_SPINLOCK,
ASN_INTEGER,&setspinLock, sizeof(setspinLock));


I think this code is OK, but there is one problem: The spinlock column isn't
increased!
Should I use other function to update the column value ?
I looked in this page:
http://net-snmp.sourceforge.net/dev/agent/group__table__dataset.html , but I
cant find any function to update column values, so i suppose  i have to use
netsnmp_set_row_column. But i cant figure what i'm missing here.













On 10/30/07, Dave Shield <[email protected]> wrote:
>
> On 30/10/2007, andre robalo <[email protected]> wrote:
> > Last question: when adding a new row , the spinlock column will be null!
> How
> > can I initialize the spinlock column when a row is created ?
>
> Have a look at the code that actually creates the row,
> or defines the structure of the default row.
>
> I'm afraid that I don't have time to look through the code for you.
> I should really concentrate on what I'm being paid to do :-<
>
> Dave
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

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