Ok, I sent this email to you before I got your other reply.  :>P

Anyway, I did find a way to reverse the order of the init routines being 
called, but it just may be lucky I guess  .... please confirm ....

The file "agent/mibgroup/OC-STB-HOST-MIB.h" exists (which I needed to create 
manually based on our past discussions) so NetSNMP can determine which Tables 
to include during configure time.   The file contents are as follows:

   config_require(OC-STB-HOST-MIB/ocStbHostAnalogVideoTable);
   config_require(OC-STB-HOST-MIB/ocStbHostAVInterfaceTable);

Using the file described above resulted in Table2(ocStbHostAnalogVideoTable) 
being initialized before Table1(ocStbHostAVInterfaceTable).

When I reversed the order of these tables (see below), then Table1 was 
initialized before Table2 (as desired) and I am now able to perform a 
"snmpwalk" through Table2  (oh yeah!).  I see how the row_prep() routine is now 
being called for each row from Table1.  I feel good right now .... <does a 
little dance>.

   config_require(OC-STB-HOST-MIB/ocStbHostAVInterfaceTable);
   config_require(OC-STB-HOST-MIB/ocStbHostAnalogVideoTable);


Anyway, does switching these two lines around truely control the order in which 
the tables are initialized?   If not, then I guess I will need to do what you 
are recommending in your response email instead.
 


Robert Story <[EMAIL PROTECTED]> wrote: On Thu, 7 Jun 2007 09:50:24 -0700 (PDT) 
Need wrote:
NH> Referring to my oroblem outlined in (1) below ......
NH> 
NH> It seems the problem might be due to the fact that 
Table2(ocStbHostAnalogVideoTable) seems to be initialized before 
Table1(ocStbHostAVInterfaceTable), thus the cache from Table1 does not exist 
yet and can not be used for Table2.

That's exactly what I just got through telling you. ;-)

NH> Is there a way to indicate which table should init first?  I will keep 
looking around.

Nope. Check out the ifTable code. I think I just used a static var in table1
to indicate if it had initialized, and called table1 init from table2.


       
---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
 Play Sims Stories at Yahoo! Games. 
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to