Re: multiple Sub-agents managing the same table

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 05/09/06, Arnaud BODENAN <[email protected]> wrote:
> So, it seems that I have to use the attributes range_subid and range_ubound
> of the netsnmp_handler_registration structure when I register a region of my
> table to the master agent.

Yes.


>                    I thought that withe range Oids between 1 and 10,
> this allowes me to reserver a region between 1 and 10 for the current
> application;

No - you should be thinking in terms of registering a single row of the table.
The OID range is used to indicate the list of column objects to register,
all sharing the same index value.

Set up an OID array containing the full numeric OID - *including*
index subidentifier(s) - of the first column in this particular row.
Then use 'range_subid' to indicate which subidentifier identifies the
MIB column object, and 'range_ubound' to indicate the last valid
column.

Repeat this for each row in turn - using the index returned from
'register_int_index'


>  the function register_int_index returns always 1

What's the OID that you pass to this routine?
*That* must be the same for each subagent (typically the OID of the
table itself) - so that they know they're working with the same set of
indexes.
  The OID passed to the 'register_mib' (or similar) call will be
different each time, since this refers to a particular row.   But the
shared index allocation needs a common OID to register indexes
against.

Dave

-------------------------------------------------------------------------
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.