On 04/09/06, Arnaud BODENAN <[EMAIL PROTECTED]> wrote:
>         netsnmp_register_table_data_set(netsnmp_create_handler_registration
>                                     ("genServerTable",
>                                      NULL,
>                                      genServerTableOid,
>                                      genServerTableOidLen,
>                                      HANDLER_CAN_RWRITE), genServerTable,
> NULL);

But that's registering the whole table.
You don't want to do that - you need to register individual rows.

> Moreover, when I execute the second binary, I have no error message so it
> seems to work ok.

Well, given that you don't actually check the return value of the
netsnmp_register_xxx
call, that feels something of an optimistic assumption!


As I said - the Net-SNMP agent has typically been used for
implementing full OID subtrees (i.e. complete tables) and most of the
helper modules have been designed with that model in mind.  If you're
trying to split a table across several subagents, you're going to have
to do a *lot* more work yourself.

Start by having a look at the AgentX specifications, where it talks
about "OID ranges".  That's the model that has been used in the
Net-SNMP agent, so it's important to understand how this works before
proceeding.
   Then you'll have to register each row individually (probably in
addition to registering the whole table) - which I suspect will
require using the 'agent_registry.c' APIs.

I'm afraid that you're on somewhat uncharted territory here, and
there's a limit to the amount of help we can provide.  I'm not sure
any of the core developers have actually tried to implement such a
split-agent table.
      [If I'm wrong about this, now would be a good time to speak up!!]

And I give you due warning - the two or three weeks before the start
of a new academic year is *the* busiest period of the whole year for
me, so I won't have much time or energy for non-essential stuff (like
this project).

Good Luck.

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
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