Antwort: Re: snmpwalk - leaf handlers are called twice

2011-03-02 Thread Reto Jaeger
Hello Dave, first of all thank you very much for your detailed answer. >When you talk about "leaf handlers", do you mean the handlers for scalar > objects, or the handlers for column objects within a table Im just using scalar objects. > What sort of registration ca

Re: snmpwalk - leaf handlers are called twice

2011-03-02 Thread Dave Shield
On 1 March 2011 13:04, Reto Jaeger wrote: > I have implemented an snmp subagent using the agent-x protocol. > When I do a snmpwalk operation I see that all leaf handlers are called > twice. The leaf handlers are called once (as expected) when I performing > a snmpget operation. W

Re: Re: snmpwalk - leaf handlers are called twice

2011-03-02 Thread Dave Shield
On 2 March 2011 17:38, Reto Jaeger wrote: > > What sort of registration call(s) are you using? > > netsnmp_register_scalar(...) In which case, the routine handle_callState() should only be called once for each request. If you're seeing it invoked twice, then my suspicion is that the agent is rec

snmpwalk - leaf handlers are called twice

2011-03-02 Thread Reto Jaeger
Hi, I have implemented an snmp subagent using the agent-x protocol. When I do a snmpwalk operation I see that all leaf handlers are called twice. The leaf handlers are called once (as expected) when I performing a snmpget operation. My question is: Why the leaf handlers called twice on a

RE: Is it safe to make requests such as get from the same subagent process that has registered and handlers the values requested.

2010-10-18 Thread Marc Butler
Is it safe to make requests such as get from the same > subagent process that has registered and handlers the values requested. > > >>>>> On Thu, 14 Oct 2010 15:32:25 -0600, "Marc Butler" > said: > > MB> I have a subagent using the AgentX protocol. Fro

Re: Is it safe to make requests such as get from the same subagent process that has registered and handlers the values requested.

2010-10-15 Thread Wes Hardaker
>>>>> On Thu, 14 Oct 2010 15:32:25 -0600, "Marc Butler" >>>>> said: MB> I have a subagent using the AgentX protocol. From the same process I MB> need to make requests to the master agent using MB> snmp_synch_response(). To complicate ma

Is it safe to make requests such as get from the same subagent process that has registered and handlers the values requested.

2010-10-14 Thread Marc Butler
Hi, I have a subagent using the AgentX protocol. From the same process I need to make requests to the master agent using snmp_synch_response(). To complicate matters, requests for values that have handlers registered in the process, will also be routed through the master agent. That is

Re: Helper handlers list

2009-04-08 Thread Dave Shield
2009/4/8 Giuseppe Modugno : > Is there a complete list (in any documentation pages or in the source > code) of these "helpers"? $ ls agent/helpers Dave -- This SF.net email is sponsored by: High Quality Requirements i

Helper handlers list

2009-04-08 Thread Giuseppe Modugno
I'm going to extend Net-SNMP agent writing a dynamically loadable module. I'm studying the documentation and found the concept of "helper handlers". I think they are very good and I'm almost sure to use some of them to code my agent extension. Is there a complete l

Re: subagent's handlers never called

2009-03-31 Thread Dave Shield
2009/3/31 Tarun Kumar : > I have generated an agentX based subagent, but when I am running it, its > table handlers are never called. This MIB contains some scalars variables, > which are being called perfectly but some problem with the table handlers > e.g in the

Re: Handlers in Net-Snmp

2007-04-02 Thread Dave Shield
On 29/03/07, Sriventhal B <[EMAIL PROTECTED]> wrote: > Can anybody tell me the exact working of the handlers. > 1. when it is created When the agent is initialised. > 2.is it created once or each time a request comes Once > 3.is the handler destroyed,i

Handlers in Net-Snmp

2007-04-02 Thread Sriventhal B
Hi all Can anybody tell me the exact working of the handlers. 1. when it is created 2. is it created once or each time a request comes 3. is the handler destroyed,if yes when and how Please respond at the earliest as we are really in need of ur help Thanks and Regards Subashini

Re: The agent trigger handlers that not relevant for the specific SNMP request

2007-03-20 Thread Dave Shield
On 20/03/07, Kobi Vaknin (kvaknin) <[EMAIL PROTECTED]> wrote: > I've 2 tables entityStateTable (from the ENTITY-MIB) and the ccCopyTable > (from CISCO-CONFIG-COPY-MIB) when i walk on the table > entityStateTable the agent triggered ,also, the ccCopyTable handler , Yes - that's correct. Remember

The agent trigger handlers that not relevant for the specific SNMP request

2007-03-20 Thread Kobi Vaknin (kvaknin)
Hello All In my Net-SNMP ,version 5.2.2 ,the agent trigger handlers that not relevant for the specific request, EXAMPLE: I've 2 tables entityStateTable (from the ENTITY-MIB) and the ccCopyTable (from CISCO-CONFIG-COPY-MIB) when i walk on the table entityStateTable the agent triggered

Re: Delegated handlers

2006-02-01 Thread Wes Hardaker
> On Wed, 18 Jan 2006 21:10:50 +0100, Magnus Fromreide <[EMAIL PROTECTED]> > said: Robert> They shouldn't return ENDOFMIBVIEW, they should set the request error to Robert> ENDOFMIBVIEW and return success/noerror. Magnus> Ok, but if I return SUCCESS and sets the request error to Magnus> E

Re: Delegated handlers

2006-01-18 Thread Magnus Fromreide
On Wed, Jan 18, 2006 at 02:38:11PM -0500, Robert Story wrote: > On Wed, 18 Jan 2006 20:21:29 +0100 Magnus wrote: > MF> It seems that delegated handlers that return ENDOFMIBVIEW as response to > MF> a GETNEXT request won't trigger any further advancement in the registry so >

Re: Delegated handlers

2006-01-18 Thread Robert Story
On Wed, 18 Jan 2006 20:21:29 +0100 Magnus wrote: MF> It seems that delegated handlers that return ENDOFMIBVIEW as response to MF> a GETNEXT request won't trigger any further advancement in the registry so MF> they might end up returning a false ENDOFMIBVIEW (or, in some cases, an MF

Delegated handlers

2006-01-18 Thread Magnus Fromreide
Hello! It seems that delegated handlers that return ENDOFMIBVIEW as response to a GETNEXT request won't trigger any further advancement in the registry so they might end up returning a false ENDOFMIBVIEW (or, in some cases, an NOSUCHOBJECT or NOSUCHINSTANCE) Is this all intentional? What

handlers for linux lvm operation

2005-10-26 Thread quhp
dear everyone, We have registered a new project in sourceforge and the URL is http://sourceforge.net/projects/lvm-mib It includes a set of Net-SNMP MIB handlers and corresponding SNMP MIB definition to Get/Set Linux LVM informations. The handlers were written by

Re: Problems with registering handlers with extended range (range_subid, range_ubound)

2004-12-09 Thread Magnus Fromreide
Hi Igor. Nice problem description. There was a bug with registering ranges on the last item in versions less than 5.2, so I'd suggest that you upgrade. /MF --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hu

Problems with registering handlers with extended range (range_subid, range_ubound)

2004-12-09 Thread Grasic Igor
Hello every body, I did a lot of playing recently with registering handlers for extended range of the oids. When I setup up range_subid to the *length* of the registration oid of the handler (and also setup some upper limit with range _ubound), appropriate handler is *not called* for range

Re: instance handlers

2004-11-18 Thread Coders
On Wed, 17 Nov 2004 22:41:50 +0100 Magnus wrote: MF> On Wed, Nov 17, 2004 at 03:39:09PM -0500, Robert Story wrote: MF> > On Wed, 17 Nov 2004 20:46:01 +0100 Magnus wrote: MF> > MF> It seems as if netsnmp_register_instance doesn't set the MF> > MF> FULLY_QUALIFIED_INSTANCE flag on the registration an

Re: instance handlers

2004-11-17 Thread Magnus Fromreide
On Wed, Nov 17, 2004 at 03:39:09PM -0500, Robert Story wrote: > On Wed, 17 Nov 2004 20:46:01 +0100 Magnus wrote: > MF> It seems as if netsnmp_register_instance doesn't set the > MF> FULLY_QUALIFIED_INSTANCE flag on the registration and further it looks > MF> as if the handler interface doesn't supp

Re: instance handlers

2004-11-17 Thread Coders
On Wed, 17 Nov 2004 20:46:01 +0100 Magnus wrote: MF> It seems as if netsnmp_register_instance doesn't set the MF> FULLY_QUALIFIED_INSTANCE flag on the registration and further it looks MF> as if the handler interface doesn't support sending flags with the MF> object registration at all as it uses a

instance handlers

2004-11-17 Thread Magnus Fromreide
Hello. It seems as if netsnmp_register_instance doesn't set the FULLY_QUALIFIED_INSTANCE flag on the registration and further it looks as if the handler interface doesn't support sending flags with the object registration at all as it uses a constant 0 for the flags parameter in netsnmp_register_h

Re: Handlers

2004-10-20 Thread Coders
;ve used before is to use the data list of the agent request info pointer. The same agent request pointer is passed to all handlers for teh varbinds in a given request. In each handler, try to extract the value from the list. If it isn't there, get the value and put it in the list for any othe

Re: Handlers

2004-10-20 Thread Dave Shield
le handler for example. Sorry - I'm not sure what you mean by that. > > Now I have been looking into handlers and it seems that the first > splitting is done on the target variable level. or that. > Is it possible to do what I want using net-snmp handlers? Unless I'v

Handlers

2004-10-19 Thread Magnus Fromreide
for example. Now I have been looking into handlers and it seems that the first splitting is done on the target variable level. Is it possible to do what I want using net-snmp handlers? /MF --- This SF.net email is sponsored by: IT Product Guide

Re: Cache handler [next handlers]

2004-07-02 Thread Coders
On Fri, 02 Jul 2004 09:49:46 +0100 Dave wrote: DS> RS> What you've proposed is pretty much the way it works now, except DS> RS> the default for the flag is no auto next. DS> DS> Except that I'm suggesting that we have a quick push to convert DS> *all* the (internal) helpers as far as possible (and

Re: Cache handler [next handlers]

2004-07-02 Thread Dave Shield
DS> - By default, handlers return success/failure, but don't explicitly DS> call the next handler in the chain. This is (normally) DS> done by the main netsnmp_call_next_handler routine. DS> (i.e. AUTO_NEXT becomes the default) RS&g

Re: Cache handler [next handlers]

2004-07-01 Thread Coders
On Thu, 01 Jul 2004 11:15:10 -0700 Wes wrote: WH> >>>>> On Thu, 1 Jul 2004 13:39:46 -0400, Robert Story (Coders) WH> DS> - By default, handlers return success/failure, but don't explicitly WH> DS> call the next handler in the chain. [...] WH> WH> Robert&

Re: Cache handler [next handlers]

2004-07-01 Thread Wes Hardaker
>>>>> On Thu, 1 Jul 2004 13:39:46 -0400, Robert Story (Coders) <[EMAIL PROTECTED]> >>>>> said: DS> Ok - maybe an example would help.[...] DS> DS> Robert> Some of the helper handlers, however, do care. Again, bulk_to_next DS> is the best

Re: Cache handler [next handlers]

2004-07-01 Thread Coders
On Thu, 01 Jul 2004 12:41:19 +0100 Dave wrote: DS> Robert> I don't think what I'm proposing takes away any flexibility. DS> DS> Ok - maybe an example would help.[...] DS> DS> Robert> Some of the helper handlers, however, do care. Again, bulk_to_next DS> i

Re: Cache handler [next handlers]

2004-07-01 Thread Coders
a bit strong. WH>Since we can not and WH>should not delete the ability to have handlers do things WH>themselves, it is unlikely it'll save us a huge amount of work if WH>we change APIs in the future. Yes, we have to maintain backwards compatibility. But that doesn&

Re: Cache handler [next handlers]

2004-07-01 Thread Dave Shield
maybe an example would help. Suppose I'm writing a helper (say to time how long a request takes), that needs to do something both before and after calling the lower handlers. With the current pipeline model, that would be: int stopwatch_helper_handler( ) { beg

Re: Cache handler [next handlers]

2004-06-30 Thread Wes Hardaker
or those with weak stacks. 2) However, Robert is wrong that it helps APIs. Since we can not and should not delete the ability to have handlers do things themselves, it is unlikely it'll save us a huge amount of work if we change APIs in the future. It's much more likely that

Re: Cache handler [next handlers]

2004-06-30 Thread Coders
On Wed, 30 Jun 2004 15:52:23 +0100 Dave wrote: DS> Having a set of handlers called "in sequence" is a perfectly reasonable DS> alternative model. I'm unconvinced as to whether it's necessarily DS> better than the current "pipeline" model, but it's cert

Re: Cache handler [next handlers]

2004-06-30 Thread Dave Shield
ink that it's that it's a change from how you understood things Robert> worked, not that it's a bad idea. I'd bet if it had worked this way Robert> from the beginning, you wouldn't have thought twice about it. Probably not, no. Having a set of handlers called "in

Re: Cache handler [next handlers]

2004-06-29 Thread Coders
is behaviour belonged at DS> Robert> a higher level. I've updated several handlers to use it, DS> eliminating Robert> the redundant loop. DS> DS> Errr... what loop? Oops. Replace 'eliminating the redundant loop' with 'eliminating an unnecessary function call and

Re: Cache handler [next handlers]

2004-06-29 Thread Dave Shield
Dave> But now the handler seems to return success or failure immediately, Dave> without actually calling any lower-level handlers. Dave> This seems to be at odds with my understanding of the handler design. Robert> A while ago I added a 'flags' field to the mib handler str

Re: Cache handler [next handlers]

2004-06-28 Thread Coders
then passes control on to the next handler. I'm pretty sure that DS> when I first wrote the original cache handler, it took this basic form. DS> DS> But now the handler seems to return success or failure immediately, DS> without actually calling any lower-level handlers. At first si