Hi Dave,

On Wed, 2007-03-07 at 09:03 +0000, Dave Shield wrote:
> On 06/03/07, Joao Miguel Ferreira <[EMAIL PROTECTED]> wrote:
> > what is the best approach when trying to implement the agent extension
> > for tables with complex indexes like multi-valued indexes.
> 


About this piece of code generated by mib2c what is the usage/meaning of
min_column and max_column ??

This is part of the table initialization code.... Am I compromising the
future possible growth of the table or this is only for initialization
purposes ?

Put it another way: if I simply do not initialize it (ex: max=0, min=0)
would the subsequent procedures work ?


------------------------------------------------------------------
table_info = SNMP_MALLOC_TYPEDEF(netsnmp_table_registration_info);
netsnmp_table_helper_add_indexes(table_info, ASN_UNSIGNED, 
/* index: dot1qFdbId */
                                ASN_OCTET_STR,
/* index: dot1qTpFdbAddress */
                                     0);
    table_info->min_column = XXX;
    table_info->max_column = YYY;
-------------------------------------------------

thx
jmf


> 
> In fact, you should find that the mib2c template will include this
> registration for you automatically.
> 
> There's no real difference between a single-indexed table,
> and one with multiple indexes.   Referencing an individual
> row is a little more complex perhaps, but the basic operation
> is exactly the same as "simple" tables.   That's one of the
> advantages of the v5 handler-based API.
> 
> Which helper to use depends purely on the characteristics
> of the table, and where the information will be stored, etc.
> See the FAQ for details.
> 
> 
> Dave


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to