I have used the command  'netsnmp_set_mode_request_error(MODE_GET, request,
SNMP_NOSUCHINSTANCE)',
also with the exception value 'SNMP_ENDOFMIBVIEW'. But both donīt work
correctly.

Dirk


> Yes, Iīm talking about disabling an instance of the column.

<Nods>


> I have tested it with returning the eror code 'SNMP_ERR_NOSUCHNAME' in the
> _get_value function for that column and one specific instance.

No - I didn't say "noSuchName", I said "noSuchInstance".

And at least with the other handlers, you don't simply return an
error code.  You'd need to call something like:

        netsnmp_set_request_error(reqinfo, request,
                                  SNMP_NOSUCHINSTANCE);

The array-user helper may well work differently.
I'll leave Robert to comment on that.

> The function 'snmp_set_var_typed_value' is not called then.
> It doesnīt work, because a walk through the whole table stops now there (
> but without an error message). Normally the walk should go further to the
> next valid colum/instance in that table.
> If I return SNMP_NOSUCHINSTANCENAME the walk stops there with error 129.

OK - so things *are* different with the array-user helper.
What happens if you return SNMP_ENDOFMIBVIEW instead??

Dave


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to