On 24 March 2011 03:09, ring <liuy...@sgchip.com> wrote:
>         In my real project,I need many objects in the table.But I don't know
> how to  assign to each object in my program.

How do you know the list of objects to go in the table?
Is it available from some other source?
   (a configuration file,   some API call to another program,
     a /proc/xxx interface or something like that?)

Is this list fixed, or can it change during the normal operation
of the system?

The normal approach to populating the table would either be
to set this up as part of initialising the table (by calling the
createEntry() routine as many times as necessary),
  or by invoking a "load_cache" routine when the agent receives
a request for something in this table.


It's difficult to advise you without knowing a bit more about what
you are trying to model.



>         If I use js50PMTable_createEntry,I have to add all the objects to
> the index and list all the value.It's too complex. Is there other method?

Sorry - I don't understand the problem here.
If you are populating the table, then yes - you need to provide the
information to go into the table.  The default 'createEntry' routine
takes the information for a given row, and creates a data structure
containing that information - i.e. representing that new row.

   I'm not sure why you describe this as "too complex", and how you
think it might be simplified.

Perhaps you could expand on exactly what your concerns are here.

Dave

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
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