Hi,

The function I was looking for, seems to be register_int_index. (it asks the 
master agent to give the next id)

A counter is impossible to use as my table is managed by several binaries.

I'm now facing the problem of feasibility to implement this.

When I see the standard (RFC 2741 - Agent Extensibility (AgentX) Protocol 
version 1), it should be possible to share the same table with multiple sub 
agents, but I don't know how to do it with net-snmp.

Arnaud.

>From: "Dave Shield" <[EMAIL PROTECTED]>
>To: "Arnaud BODENAN" <[EMAIL PROTECTED]>
>CC: net-snmp-users@lists.sourceforge.net
>Subject: Re: Initialization of a table:some columns are not created
>Date: Mon, 4 Sep 2006 12:58:39 +0100
>
>On 01/09/06, Arnaud BODENAN <[EMAIL PROTECTED]> wrote:
>>Concerning the management of the index in a table, I would like to know if
>>there was an automatic way of incrementing them if the index is numeric
>
>Yes.
>Have an internal variable within your code that keeps track of the
>last index used,
>and increments this whenever it creates a new row.
>
>>(like in SQL databases)
>
>That's basically how database software will work.  There'll be similar
>processing somewhere within the implementation of a table.  There's no
>such thing as "automatic" in computer programming.  *Somewhere* there
>has to be code to handle it - either within the code you write, or in
>some library or similar.
>      As I keep telling our students, computers are thick!
>
>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