R: mib2c question.

Palmentieri Nunzio <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <49FCBDCB40420B409FB4EA8D712CC66D03E414BD@srv003snap.napoli.it.int.atosorigin.com>
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]
<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]
<mailto:[email protected]> ] 
Inviato: giovedì 2 marzo 2006 16.13 
A: Palmentieri Nunzio 
Cc: [email protected] 
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
<http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=12164
2> &kid=110944&bid=241720&dat=121642

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