Hi again (and sorry for the spam...),

I have tested the function register_int_index to generate an unique index 
and added it in the registration of my table genServerTable.

I did a test where I launch 4 applications (subagent using AgentX) 
registering rows in the same table; moreover, I log the index returned by 
the function register_int_index (I have to increment it after the call of 
register_int_index, as the first index returned by register_int_index begins 
with 0 instead of 1)

All seems to be OK (in the log and in the attribution of the index):
Application 1 registers the row 1
Application 2 registers the row 2
Application 3 registers the row 3
Application 4 registers the row 4

But when I execute a snmpwalk or a snmpget, I only get metrics for the index 
1. The rows 2, 3, and 4 have not been registered.

I appreciate any help about this problem. and I would like to know if my 
approach (share the same table by several applications) is possible or not.

>From: "Arnaud BODENAN" <[EMAIL PROTECTED]>
>To: net-snmp-users@lists.sourceforge.net
>Subject: multiple Sub-agents managing the same table
>Date: Fri, 01 Sep 2006 17:15:45 +0200
>
>Hi,
>
>I have a generic MIB composed with:
>- table of Servers
>- table of metrics exposed by a server (generic table: thanks Dave;o) )
>
>I want that all my applications share this MIB and register in the same 
>MIB.
>
>Question 1: Is it feasible?
>
>Question 2: When my application starts, it initializes the tables. This
>initialization is done for each application. How can I share my table 
>across
>multiple applications? If all applications, when they start, call the
>following C function netsnmp_create_table_data_set, what would be the
>result? How can I manage the index in all applications so that I'm sure 
>that
>this is unique for each process?
>
>Thansk.
>
>_________________________________________________________________
>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

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/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