I have to describe my problem more carefully since I was a bit wrong. Actually in this case I see that after finishing processing of .1.3.6.1.4.1.111111.1.3.4 OID, net snmp calls function get_first_data_point for table .1.3.6.1.4.1.111111.1.3.5, which returns NULL. After it I see that handler for .1.3.6.1.4.1.111111.1.3.6 have been called 7 times! But if I delete .1.3.6.1.4.1.111111.1.3.5 table registration, the handler for .6 is called 3 times. I can't understand that behaviour
Чугунов Дмитрий <[email protected]> писал(а) в своём письме Tue, 12 Nov 2013 16:05:29 +0400: > Hello. > > I have the following OID's: > .1.3.6.1.4.1.111111.1.3.1 //scalar > .1.3.6.1.4.1.111111.1.3.2 //scalar > .1.3.6.1.4.1.111111.1.3.3 //scalar > .1.3.6.1.4.1.111111.1.3.4 //table > .1.3.6.1.4.1.111111.1.3.5 //table > .1.3.6.1.4.1.111111.1.3.6 //scalar > .1.3.6.1.4.1.111111.1.3.7 //scalar > .1.3.6.1.4.1.111111.1.3.8 //scalar > .1.3.6.1.4.1.111111.1.3.9 //scalar > .1.3.6.1.4.1.111111.1.3.10 //scalar > > Scalar OIDs I register with the help of netsnmp_register_scalar function and > table OIDs I register using netsnmp_register_table_iterator (then I inject > cache handle but if I remove it, the problem remains). So if I query a table > using the next command: > snmptable -v 2c -c public -r 0 -t 15 localhost:10161 > .1.3.6.1.4.1.111111.1.3.4 > i get this table correctly. But when I look at logs, I see that handlers of > all next OID's (.1.3.6.1.4.1.111111.1.3.5, .1.3.6.1.4.1.111111.1.3.6, > ..., .1.3.6.1.4.1.111111.1.3.10) have been called. Why? > > P.S. If I use snmptget for a table item or a scalar OID, only one handler is > called. So, I think, the problem is in snmptable. What's wrong with it? > > ------------------------------------------------------------------------------ > 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 > [email protected] > https://lists.sourceforge.net/lists/listinfo/net-snmp-coders > ------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
