2009/12/2 飞飞 <[email protected]>:

> void
> initialize_table_diskSystemTable(void)
> {
              :
>     netsnmp_tdata_register( reg, table_data, table_info );
>     /* Initialise the contents of the table here */
>     /* what am I do something here???*/

       Call the routine 'diskSystemTable_createEntry()'
for each row that you need to have in the table.
> }


Alternatively, if you use the command

   mib2c -Scache=1 -c mib2c.table_data.conf ...

to generate the code, this will include a caching
mechanism, including a 'myTable_load' routine,
to populate the table from some external source.

It depends on whether changes to the table will
be driven via SNMP, or other external mechanisms.

Dave

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
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