Re: Regarding Table data Create and Fill

Stéphane Champeau <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
kumar undurthi a écrit :
> Hi Dave,
>      As u said to generate the code with  " mib2c -S cache=1 -c 
> mib2c.table_data.conf ocStbHostAVInterfaceTable "
> I generated , u can check the code below.
>      1) while compiling it i faced few errors ,which i modified :: now 
> i able to compile .
>      2) But now while runing.. i able to get the values if i fill the 
> table in "initialize_table_ocStbHostAVInterfaceTable"( which is 
> similar to as normal table_data.conf model (with out catch) )
> 3) But if I keep same code in the "ocStbHostAVInterfaceTable_load() " 
> module ( to fill the table ) it is not getting the values and more 
> over I kept some prints in the "ocStbHostAVInterfaceTable_load() 
> module" ,  What i noticed is that module itself  not called by the 
> rest of the code .
>
> So "ocStbHostAVInterfaceTable_load()" is not called rest of the 
> modules, may be because of that i am unable to get values. " Please 
> can u tell when the Table_load is called ".

I have the same problem, I think there is a bug in the "table_container" 
who don't call "table_tdata" if the table is empty ...

Here a trace of the problem :

Ouput from snmpd -f -L -Dmydata -Dhandler
When it's work fine :
------------
handler:calling: main handler bulk_to_next
handler:calling: calling handler bulk_to_next for mode GETNEXT
handler:returned: handler bulk_to_next returned 0
handler:calling: calling handler table for mode GETNEXT
handler:calling: calling handler table_container for mode GETNEXT
handler:calling: calling handler table_tdata for mode GET          <-- good
handler:returned: handler table_tdata returned 0
handler:calling: calling handler cache_handler for mode GET
mydata: Update Handler ...MAJ
handler:returned: handler cache_handler returned 0
handler:calling: calling handler mydataTable for mode GET
------------

When the table is empty the function "Update Handler" is never call
------------
handler:calling: main handler bulk_to_next
handler:calling: calling handler bulk_to_next for mode GETNEXT
handler:returned: handler bulk_to_next returned 0
handler:calling: calling handler table for mode GETNEXT
handler:calling: calling handler table_container for mode GETNEXT
handler:returned: handler table_container returned 0              <-- bad
handler:returned: handler table returned 0
handler:calling: main handler bulk_to_next
handler:calling: calling handler bulk_to_next for mode GETNEXT
handler:returned: handler bulk_to_next returned 0
handler:calling: calling handler table for mode GETNEXT
handler:calling: calling handler table_container for mode GETNEXT
handler:returned: handler table_container returned 0
----

Stephane.




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.