Hello.

I am developing snmp agent which should maintain one table. I've implemented 
getting table through snmp. But there is some trouble. Actual table data must 
be received from other computer using TCP. There is no problem go get this 
data. I do it in the first call of table's get_first_data_point function. Then 
net snmp library calls table handler for every item in the table. Then it calls 
this handler again but with requests->processed == true. At that moment I clear 
my table and consider it to be irrelevant. It works fine when I execute 
snmptable for this table. But if I execute snmpget for a particular item of the 
table, the table handler function is called only once. Therefore my agent still 
considers this table relevant and therefore this table isn't reloaded at the 
next request. I've tried to use netsnmp_inject_handler function for table 
loading, but this injected handler is called before EVERY table handler call. 
Therefore this function isn't appropriate for table loading. How
could I decide when I should free loaded table?

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to