I have used header_generic and header_simple_table based on what I have found in http://net-snmp.sourceforge.net/ I don't quite understand what you have said, is there another way to program my subagent? In addition, I have tried not to use mib2c for two questions that I have failed to find their answer: 1-mib2c relies on the fact that each time i modify my mib i have to use it onnce again and recompile my source 2-I have found that mib2c uses the magic variable of the vp structure to decided wich oid is requested but this vartiable is of type char, what if i have more then 256 entries won't this create a conflict?
Regards, Marwan ----- Original Message ----- From: "Dave Shield" <[email protected]> To: "Marwan Khoury" <[email protected]> Cc: <[email protected]> Sent: Monday, August 24, 2009 12:03 PM Subject: Re: CPU consumption > 2009/8/24 Marwan Khoury <[email protected]>: >> I believe that I have used functions header_generic and >> header_simple_table >> in an errornous manner. >> I am not able to find the difference between the variable *name passed in >> the function parameter of my FindVarMethod and the variable vp->name also >> available. > > You appear to be using the old UCD v4 style of programming. Why? > > >> In addition, I have an octet-string as index for my tables, I know that I >> can't use the function header_simple_table but I don't know what function >> should I use or the algorithm needed to write such a function. > > I would *strongly* suggest that you look at using the newer v5 > handler-based > approach. This can handle string-based indexes quite happily, and will > do > a lot more of the work for you. > > Try running the command > > mib2c -S cache=1 -c mib2c.table_data.conf {myTable} > > and work from the template code that this produces. > You should find that a lot easier than the older approach. > > Dave -------------------------------------------------------------------------------- No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.65/2322 - Release Date: 08/23/09 18:03:00 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ 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
