Re: How to initialise the contents of the table ?

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.