On Sun, 2005-12-04 at 21:30 +0530, [EMAIL PROTECTED] wrote:
>  I am using net-snmp-5.2.1, i had genrated mib2c code for myTable. 

>      If any getbulk call comes for myTable, in mib2c code net-snmp
> invokes myTable_handler().

>    When i give getbulk request to this table, it is always comes to
> MODE_GETNEXT case? Is there any case it will invoke MODE_GETBULK?

How did you register the table?
By default, tables are usually registered using
HANDLER_CAN_RWRITE or HANDLER_CAN_RONLY.

These equate to GET/GETNEXT (and possibly SET) support.
They do *not* include direct support for GETBULK, so such
requests are converting into a series of GETNEXT queries.


If you want to process GETBULK requests yourself, then
register the table using

    HANDLER_CAN_RONLY|HANDLER_CAN_GETBULK
> 

>   Is it enougth to  filling response using snmp_set_var_typed_value()?

Yes.

>     If the "-Cr5" option is given in the snmpgetbulk command, is my
> myTable_handler(), will be called 5 times with reqinfo->mode as
> MODE_GETNEXT?
> 
Yes.
(Unless you use HANDLER_CAN_GETBULK above)

Dave


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to