On Fri, 2006-02-24 at 12:03 +0100, Palmentieri Nunzio wrote:
> I wrote a MIB with several table objects.
> How can I generate code for it?
> I think I have to run mib2c on both the tables, and then compile the
> code generated, as follows:
>  
> mib2c peProcessTable
> mib2c peObjectTable

That's certainly the most reliable way to do this
(and typically the easiest to maintain).

Depending on the mib2c template that you are using,
it *might* be possible to run mib2c on a higher-level
root object, and allow it to generate code for both
tables in the same file.   But not all templates
support this, and it's probably easier to work on
one table at once.

You can always combine the files manually, once you're
happy that they work individually.

Dave


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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