>>>>> On Wed, 18 May 2011 22:44:40 -0400, Zimmer Hu <[email protected]> said:

ZH> Can somebody show me how to do GETBULK in netsnmp? Besides set GETBULK
ZH> handler mode, are there anything else needs to be done?

ZH> I've found bulk_to_next.c file, it seems can convert bulk request to
ZH> get-next, and get-next can be convert to get. If that's the case, do
ZH> I need to code for GETBULK?

The short answer is: no, you don't need to do anything.

The longer answer is that you can write code that is "GETBULK capable",
in which case your code needs to understand that it needs to return N
variables in response instead of just 1.  If you do this, it's
frequently much more efficient when a GETBULK comes along if your data
is already ordered and sorted.  But by default, we assume that most code
isn't "this smart" and the handler in the bulk_to_next.c file is
automatically injected into your stream to trick your underlying
"simple" code into believing it's just processing a GETNEXT.
-- 
Wes Hardaker
Please mail all replies to [email protected]

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to