On Fri, 2005-05-06 at 00:07, Toth, Gregory S wrote:
> It worked, thank you.
Good.
> Sorry I've been a pain about this for the last few weeks, but this is so
> different from the 4.x.x that I was unable to determine from the mib2c
> generated code and what examples in the net-snmp package how to p
ailto:[EMAIL PROTECTED]
Sent: Thursday, May 05, 2005 1:25 AM
To: Toth, Gregory S
Cc: net-snmp-coders@lists.sourceforge.net
Subject: RE: How to implement tables in 5.0.6
On Thu, 2005-05-05 at 00:21, Toth, Gregory S wrote:
> Thanks, that worked (oops I missed the & on the &this_index.
&
On Thu, 2005-05-05 at 00:21, Toth, Gregory S wrote:
> Thanks, that worked (oops I missed the & on the &this_index.
>
> The walk now returns the first row for each column in the table, but not
> the other rows.
OK - so what does your getNextDataPoint routine look like?
> Should the flow look
>>The 'snmp_set_var_value' call takes a *pointer* to the value being
set. Try:
>> snmp_set_var_value( vptr, (u_char*)&this_index,
>> sizeof(this_index));
>>You need to pass the address of 'this_index'.
>>Dave
Thanks, that worked (opps I missed the & on t
> On Tue, 3 May 2005 17:30:16 -0700, "Toth, Gregory S" <[EMAIL PROTECTED]>
> said:
Gregory> So what is the main 'table_helper' and how do I use it?
The main table helper does almost nothing for you and you're expected
to do most of the grunt work. There is an example of using it in
agen
On Tue, 2005-05-03 at 23:36, Toth, Gregory S wrote:
> Here is the actual code for the method that failed,
> netsnmp_variable_list *vptr;
> long this_index = 1;
> vptr = put_index_data;
> snmp_set_var_value(vptr, (u_char *) this_index , sizeof(this_index));
> -Original Message-
> From: Dave Shield [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 03, 2005 5:47 AM
> To: Toth, Gregory S
> Cc: net-snmp-coders@lists.sourceforge.net
> Subject: RE: How to implement tables in 5.0.6
> > My intention is that in the
-Original Message-
From: Dave Shield [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 03, 2005 5:49 AM
To: Toth, Gregory S
Cc: net-snmp-coders@lists.sourceforge.net
Subject: RE: How to implement tables in 5.0.6
On Fri, 2005-04-29 at 23:31, Toth, Gregory S wrote:
> >> oi
On Fri, 2005-04-29 at 16:17, Toth, Gregory S wrote:
> > The 'get_first' routine should return some sort of pointer to the
> > first row of the table (and will only be called once). The 'get_next'
> > routine should take this pointer, and return the equivalent pointer
> > for the next row.
> In my
On Fri, 2005-04-29 at 23:31, Toth, Gregory S wrote:
> >> oid my_oid[] ={ 1,2,3,4,5,6,7,1};
> >> vptr = put_index_data;
> >> snmp_set_var_value(vptr,(u_char *)my_oid,8);
>
> >No.
> >Try:
> > long this_index = 1;// (1,x) elements
> > vptr = put_index_data;
> > snmp_set_var_value(
-Original Message-
From: Dave Shield [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 28, 2005 1:35 AM
To: Toth, Gregory S
Cc: net-snmp-coders@lists.sourceforge.net
Subject: Re: How to implement tables in 5.0.6
On Wed, 2005-04-27 at 22:38, Toth, Gregory S wrote:
> We are in
> My guess is that xx_get_first_data_point should return the
> objectID (in the netsnmp_variable_list) of the first element table
> element (1 (column),1 (row)) for a 2 dimensional table and that given
> a object id in the "netsnmp_variable_list * put_index_data",
> xx_get_next_data_poi
On Wed, 2005-04-27 at 22:38, Toth, Gregory S wrote:
> We are in the transition process from 4.2.x to 5.0.6
> Doing scalars in 5.0.6 is fairly straightforward but the table
> implementation is very different.
Probably because there are now several different possible
alternatives, depending on the c
13 matches
Mail list logo