On Tue, 10 Aug 2004 12:30:34 +0200 Froese wrote:
FD> I use the variable 'valid_columns' of the netsnmp_table_registration_info
FD> structure  in my mib file (generated with mib2c.array-user.conf, use
FD> NET-SNMP version 5.1.1) for disabling a column in my table.
FD> It works fine, but I want to disabling this column only for one specific
FD> table index, not for all table indexes.

That is not supported. The valid column information is used to keep the table
handler from calling the lower table for a column which will never return data.
If the table *might* return data, then that column must be included in the
valid column information so the lower table will be called.

FD> Also the disabling of the column
FD> should be dynamically; this means, dependent on other variables in this
FD> table  the column is enabled (valid) or not. Any possibilities for handle
FD> this ?

Not automatically, at least not anytime in the near future. The lower table
handler has to deal with this.

On Wed, 11 Aug 2004 08:43:15 +0200 Froese wrote:
FD> I have used the command  'netsnmp_set_mode_request_error(MODE_GET, request,
FD> SNMP_NOSUCHINSTANCE)',
FD> also with the exception value 'SNMP_ENDOFMIBVIEW'. But both donīt work
FD> correctly.

Are you having problems with a GET request, or GET NEXT? Since you mention a
walk, I assume you mean GET NEXT, in which case the set mode parameter should
be MODE_GETNEXT, not MODE_GET.

FD> > I have tested it with returning the eror code 'SNMP_ERR_NOSUCHNAME' in
FD> > the_get_value function for that column and one specific instance.
FD>  [...]
FD> And at least with the other handlers, you don't simply return an
FD> error code.

Actually, this case is not an error, so you shouldn't return an error code. You
should set the mode to no such instance, but the return code for the function
should be  SNMP_ERR_NOERROR.

FD> The array-user helper may well work differently.

It hasn't had extensive testing with sparse tables, so there may be a problem.
In 5.1.2 there is the sparse table handler, so I'd expect it to work better
there.

-- 
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>  
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
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