Tell me if I'm wrong, but for me, nothing exists in the library net-snmp to 
manage get/get_next requests for tables registered with range_subid and 
range_ubound => by the way, this is a bug, no?

the API netsnmp_create_handler_registration is an API able:
- to register a whole table
- to register only columns of a table for a specified index

To my point of view, the helper functions must be able to manage these two 
possibilities , and this is not the case.

Indeed, when registering columns of a table, the rootoid_len should be set 
(at the end of the process) to the length of the Oid - 3 (the finl 
rootOidLen must point to the Table Oid, and not the index!). I think I will 
solve it this way.

Of course, my hack is an uggly hack!!! But the solution exposed previously 
(set correctly the rootoid_len) is for me a clean and safe one.

But perharps, I'm wrong. I'm not as experienced as you on net-snmp.

Arnaud.

>From: "Dave Shield" <[EMAIL PROTECTED]>
>To: "Arnaud BODENAN" <[EMAIL PROTECTED]>
>CC: net-snmp-users@lists.sourceforge.net
>Subject: Re: multiple Sub-agents managing the same table
>Date: Fri, 8 Sep 2006 17:31:09 +0100
>
>On 08/09/06, Arnaud BODENAN <[EMAIL PROTECTED]> wrote:
>>Indeed, this handler is written to handle tables registered from the 
>>rootOid
>>corresponding to the Oid of the Table.
>
>Yes.
>
>>                                                    The problem is that 
>>with registration
>>of a region of MIB, the rootOid corresponds to the index of the table.
>
>In which case, this is not registering a table - so using the table
>helper isn't really appropriate.
>
>
>>Here is my workaround (hardcoded for the moment):
>   [snip]
>
>Uggh!
>Still, if it works for you - then fair enough.
>Nevertheless - Ugghh!!
>
>
>
>>Now, I want to know how this bug can be corrected in a safe and clean 
>>manner...
>
>Well the first thing to establish - what exactly *is* the bug here? (if 
>any)
>I'm inclined to suggest that it's actually a case of using the wrong
>tool for the job.
>And what might be needed is a new mib2c config, specifically designed
>to handle individual table rows.
>
>Dave

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to