I use the command 'mib2c  -Scache=1  -c  mib2c.table_data.conf uit' and then I 
got this hint:

no variable specified for -S flag. at /usr/local/bin/mib2c line 96.

Who can mail me your  modified .c file which generated by mib2c.table_data.conf 
from a simple table mib file?

Oh my God,anything is welcome!

Many thanks!

Alex
 
 
------------------ 原始邮件 ------------------
发件人: "Dave Shield"<[email protected]>;
发送时间: 2009年12月2日(星期三) 晚上6:44
收件人: "飞飞"<[email protected]>; 
抄送: "net-snmp-users"<[email protected]>; 
主题: Re: How to initialise the contents of the table ?

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