Hi,
I am using net-snmp 5.3.0.1 (on Suse 8.2) and I need to write a sub-agent to implement a table.  I'm new to snmp so as a starting point I tried following the tutorial on the web for the mib2c mfd (for the ifTable).
However when I generated the code using mib2c (mib2c -c mib2c.mfd.conf ifTable) the code generated is different to that in the tutorial.
 
One of the main differences seems to be the initialisation of the data:
The code on the web has a function called: 'ifTable_cache_load' which gets called from the interface code.
The code I have generated has an equivalent function called ifTable_container_load but this does not seem to get called from anywhere (I put a debug message in the function just to check) and therefore the data does not get loaded.
 
If I download the example code off the web this compiles and works without a problem.  Similarly if I try building a sub-agent for a simple scalar in my mib (using mib2c.scalar.conf) this also works fine.  Its the table that is giving me problems.
 
Can anyone help me with this please?
 
Thanks
Graeme.

Reply via email to