On Fri, 2005-05-06 at 09:51, ericyosho wrote: > > Can you request the information for one particular > > row, or can you only walk through the whole table? > > we use UNIXsocket as our interface. > each time i read the interface i will get a structure. > and in the whole i will get a single list whose node > is just the structure. > the structure corresponds to two or more rows in my > table. > i have to parse the structure and fix it myself.
OK - so in effect, you need to walk through the whole table. > i want the exact realtime information. so > if the data in the structure changed,i will have to > change my table. So noted. > > Roughly how many rows will there typically be in the > > whole table? How many columns in each row? > > not many. > usually i will have 5 rows or something in my > table,with 6 columns for each row. Good - we're not talking about too much information then. > sorry ,all the functions in my template are > mplsTunnelARHopTable_get_first_data_point(... ) > mplsTunnelARHopTable_get_next_data_point(... ) Those are the ones you need to concentrate on. The simplest approach is probably to read in the table as part of the 'get_first_data_point' routine, and walk through the list in 'get_next_data_point' See the recent thread "How to implement tables in 5.0.6" in the coders list archives for a fuller explanation of how things work. Dave ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ 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