Bluehost.com Web Hosting $6.95

Re: Regarding Table data Create and Fill

This is a discussion on Re: Regarding Table data Create and Fill within the SNMP Users forums, part of the Networking and Network Related category; kumar undurthi a =E9crit : > Hi Dave, > As u said to generate the code with " mib2c -S cache=...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-19-2008
Stéphane Champeau
 
Posts: n/a
Default Re: Regarding Table data Create and Fill

kumar undurthi a =E9crit :
> Hi Dave,
> As u said to generate the code with " mib2c -S cache=3D1 -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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:38 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0