>>>>> On Fri, 25 Jun 2004 08:46:09 -0500, Kelly Wiles <[EMAIL PROTECTED]> said:
Kelly> <tablename>_get_first_data_point() - Kelly> Point to first structure in linked list, the stucture Kelly> contains all the information for a single row in the table. Kelly> <tablename>_get_next_data_point() - Kelly> Move point to next row in linked list. Kelly> <tablename>_handler() - Kelly> Loop through the row returning the value for each column Kelly> in a single table row. You got the fundamentals right. So now its just a question of what's actually going wrong. Kelly> The table has only 1 index and it is of type INTEGER and the total Kelly> number of columns in the table is 9. (min_column = 2, max_colum = 9) Sounds about right. Kelly> If the <tablename>_get_first_data_point is used to set the starting Kelly> point of the table rows then why is it called once for each column Kelly> in the table minus the index count? It shouldn't be called once per column, unless you have the serialize helper injected somewhere in your calling chain, and assuming you're using version 5.1 or above? Kelly> Who sets up the requests link list that is passed to the Kelly> <tablename>_handler function? The main agent sets the master list, and the table_iterator and table helpers help set the individual components of the list (like the column number for a particular request). Kelly> As a note, the examples on the web site need to be expanded. Kelly> Use mibs with more than one table and several columns per Kelly> table. I for one learn best with examples and documentation Kelly> pointing out the finer points of the code. There are a number of examples. If you grep for "iterator" in agent/mibgroup/*/*.c you should find a number of files that make use of it. -- Wes Hardaker Sparta ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ 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