On 24 March 2011 17:00, Naama Bar Menachem
wrote:
> Thanks, however in "nsDemodEventsTable_get_next_entry" function, there
> is no "reqinfo" that "netsnmp_set_request_error" expect to get as first
> parameter.
Don't set this in the 'get_next_entry' funtion - handle it in the main
handler routine.
.@googlemail.com] On
Behalf Of Dave Shield
Sent: Thursday, March 24, 2011 6:49 PM
To: Naama Bar Menachem
Cc: Net-SNMP users
Subject: Re: Raw-table doesn't work.
On 23 March 2011 14:40, Naama Bar Menachem
wrote:
> I suppose that my getnext function is not handling right the case when
> we
On 23 March 2011 14:40, Naama Bar Menachem
wrote:
> I suppose that my getnext function is not handling right the case when
> we get to the end of the table.
> What am I doing wrong?
Try setting the varbind to have the error EndOfMibView
i.e.
netsnmp_set_request_error(reqinfo, request,
ally, return the data structure for this row
*/
syslog(LOG_ALERT,"SCHMIL &EventsTable_entry = %x row = %x",
&EventsTable_entry,row);
return row;
}
-Original Message-
From: Naama Bar Menachem
Sent: Wednesday, March 23, 2011 4:40 PM
To: 'Dave Shield'
or this row
*/
syslog(LOG_ALERT,"SCHMIL &EventsTable_entry = %x row = %x",
&EventsTable_entry,row);
return row;
}
-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On
Behalf Of Dave Shield
Sent: Wednesday, March 23, 2011
Il 03/23/2011 11:24 AM, Naama Bar Menachem ha scritto:
> Hi Dave
>
> The handler is NOT called when a "get" request is sent (We get a "No
> Such Object available on this agent at this OID" respond).
> However, it is called for a getnext request.
>
> Got any clue?
> Thank you
>
>
>
Hi,
which OID exa
com [mailto:dave.shi...@googlemail.com] On
Behalf Of Dave Shield
Sent: Wednesday, March 23, 2011 10:43 AM
To: Naama Bar Menachem
Cc: Net-SNMP users
Subject: Re: Raw-table doesn't work.
On 22 March 2011 19:32, Naama Bar Menachem
wrote:
> The code below implements a simple rax-table.
>
> Althoug
On 22 March 2011 19:32, Naama Bar Menachem
wrote:
> The code below implements a simple rax-table.
>
> Although the initialize function succeeds the handler isn’t called when we
> send a get or getnext request
Are you sure that the handler isn't being called at all?
Or is it simply that the agent