On Mon, 16 May 2011 22:02:47 +0200 Ernst wrote: EAK> On 16.05.2011 17:50, Robert Story wrote: EAK> > EAK> RS> Yes, but having a working example of the code mean it would be EAK> easier to stuff EAK> RS> into an extension mib. EAK> EAK> Ahok, so please find patches to hr_swrun.c and HOST-RESOURCES-MIB EAK> attached to this mail.
Could you submit them to our patch tracker? I think it's at http://www.net-snmp.org/patches/. Pacthes in emails tend to get lost. EAK> > I think adding a Net-SNMP extension table to the hrSWRun table is the EAK> way to EAK> > go. We just have to get everyone to agree on the semantics for the EAK> object. EAK> EAK> Could you point me to an example? I looked throw the code, some examples EAK> and tutorials but some how do not get the link to a clear defintion of EAK> "Net-SNMP extension table" and/or its use. Most of the HOST-RESOURCES mib is an example... An extension table is simply a table that re-uses the index from another table... There are several tables in that mib that use hrDeviceIndex. So on the mib side, what we need is a Net-SNMP table that uses hrSWRunIndex as the index. On the code size, we need a way to get at the index for the hrSWRunTable. Hopefully Get_Next_HR_SWRun and friends work from another source file... ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
