[AGENT++] find_succ

Frank Fock fock at agentpp.com
Sat Nov 20 12:42:01 CET 2004


Hi Karl,

OK, I got several votes for it, so I will implement it for the next
release. Besides this improvement, the next release will also
contain the fix for the noSuchInstance problem and the extension
of the AGENTP-CONFIG-MIB.

Best regards,
Frank

Karl Abicht wrote:

>Hi Frank,
>
>in our agent the accessibility of a leaf depends on the operation mode of
>the underlying system. And, sometimes in some cases a leaf which is normally
>READONLY then should be NOACCESS-ible.
>
>
>Regards,
>
>Karl
>
>  
>
>>Hi Karl,
>>
>>I see no reason why one would add a not-accessible leaf to
>>a Mib instance? Could you please explain what you are trying
>>to accomplish with a not accessible leaf?
>>
>>Thanks,
>>Frank
>>
>>Karl Abicht wrote:
>>
>>    
>>
>>>Hi,
>>>
>>>your code:
>>>
>>>Oidx MibTable::find_succ(const Oidx& o, Request*)
>>>{
>>>       ThreadSynchronize s(*this); {
>>>		MibLeaf* l = find_next(o);
>>>		while ((l) &&
>>>		       ((l->get_access() == NOACCESS) ||
>>>			(!l->valid()))) {
>>>		    l = find_next(l->get_oid());
>>>		}
>>>		if (l) {
>>>		    return l->get_oid();
>>>		}
>>>		return Oidx();
>>>	}
>>>}
>>>
>>>It was a good idea to change to this behavoir.
>>>But, this fixes the problem just inside of MibTables.
>>>
>>>Is it possible to do this similar for normal MibLeafs in the Mib ?
>>>Otherwise a 'walk' stops at the first invalid or not accessible leaf.
>>>
>>>
>>>
>>>Regards,
>>>
>>>Karl Abicht
>>>
>>> 
>>>
>>>      
>>>
>>    
>>
>
>  
>





More information about the AGENTPP mailing list