Re: multiple Sub-agents managing the same table
"Arnaud BODENAN" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks. >From: "Dave Shield" <[email protected]> >To: "Arnaud BODENAN" <[email protected]> >CC: [email protected] >Subject: Re: multiple Sub-agents managing the same table >Date: Mon, 4 Sep 2006 13:56:07 +0100 > >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 >[email protected] >Please see the following page to unsubscribe or change other options: >https://lists.sourceforge.net/lists/listinfo/net-snmp-users > _________________________________________________________________ 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 [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users