Title: R: mib2c question.

Yes,
I did it manually, that is, I generated the modules:

peProcessTable.c  peProcessTable.h
peObjectTable.c peObjectTable.h

I created a new file.c containing all functions coming from the two originated files
(peProcessTable.c and peObjectTable.c) and I included in it peProcessTable.h and
peObjectTable.h.

It works fine.

Thanks.



Nunzio Palmentieri
Web Care Solution
 
Atos Origin
Via Antiniana 2/a
80078 Pozzuoli (NA) - ITALY

 

Direct        +39 081 6103 388
Mobile       +39 335 1214 806
Fax             +39 081 6103 200
e-mail        mailto:[EMAIL PROTECTED]
Web            www.atosorigin.com

This electronic message contains information from Atos Origin, which may be privileged and confidential. The information is intended to be use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited.



-----Messaggio originale-----
Da: Dave Shield [mailto:[EMAIL PROTECTED]]
Inviato: giovedì 2 marzo 2006 16.13
A: Palmentieri Nunzio
Cc: net-snmp-users@lists.sourceforge.net
Oggetto: Re: mib2c question.


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