Hi,

Recently I have coded my own MIB module based on a stub file that was
originally auto-generated by mib2c using mib2c.iterate.conf. The version is
5.2.2. The module contains a table with 10 columns and currently 125 rows.

Since I want to get the newest data from system when a GETBULK message come
in. I have an init_table() function in get_first_data_point(). The
init_table() function get the data from system by TCP and set them to a
given dataset. Then get_next_data_point() can get data from the dataset and
return to manager.

The table seems to be working well but I was quite surprised to see that the
functions get_first_data_point() get called 20 times if I get the table
using GETBULK messages while the Max-Repetitions is set to 20. So the
init_table() has to be executed 20 times. It takes too much time.

I have read some others questions similar with mine. The answer is change to
netsnmp_inject_handler instead of mib2c.iterate.conf. Is there anyone can
show me a way not to change the helper but modify my code to decrease the
execute init_table() times?

Sincerely

Peter

--
you jump, I jump,she jump 3
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to