Re: Re: Help please, need to access a row column value from inside the agent

2007-01-30 Thread Dave Shield
On 30/01/07, Vinicius Pacheco <[EMAIL PROTECTED]> wrote: > printf("value = %f" , data2->data.floatVal); printf("value = %f" , *data2->data.floatVal); floatVal is a *pointer* to the value, not the value itself. (Same for integers) > Other question: In what place in the union the ASN_IPADDRESS is

Re: Re: Help please, need to access a row column value from inside the agent

2007-01-30 Thread Vinicius Pacheco
Thanks again Dave, Now it´s almost perfect, but I´m having some trouble accessing the value when it is not a string. For example, when the value type is ASN_OCTET_STR this works: - netsnmp_table_data_set_storage *data1 = netsnmp_table_data_set_find_column( (netsnmp_table_data_set_storage *

Re: Re: Help please, need to access a row column value from inside the agent

2007-01-30 Thread Dave Shield
On 29/01/07, Vinicius Pacheco <[EMAIL PROTECTED]> wrote: > Thanks for the previous answer, but when I compiled the agent with you > suggestions, I got the following error: > -- > "warning: passing argument 1 of 'netsnmp_table_data_set_fin

Re: Re: Help please, need to access a row column value from inside the agent

2007-01-29 Thread Vinicius Pacheco
Hi Dave, Thanks for the previous answer, but when I compiled the agent with you suggestions, I got the following error: -- "warning: passing argument 1 of 'netsnmp_table_data_set_find_column' from incompatible pointer type" -This warn

Re: Help please, need to access a row column value from inside the agent

2007-01-29 Thread Dave Shield
On 25/01/07, Vinicius Pacheco <[EMAIL PROTECTED]> wrote: >I need help accessing an especific row column value using for that > a given row. > I want to be able to, using the row obtained from last line of > the code, access any given column value. > Something like: > value = row->column[2