Re: generating .c file from MIB file

This is a discussion on Re: generating .c file from MIB file within the SNMP Users forums, part of the Networking and Network Related category; Hi Dave, I tried following command - mib2c -c mib2c.scalar.conf -c mib2c.int_watch.conf -f netSnmpExamples netSnmpExamples.txt but ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-11-2006
Sagar Shukla
 
Posts: n/a
Default Re: generating .c file from MIB file

Hi Dave,
I tried following command -
mib2c -c mib2c.scalar.conf -c mib2c.int_watch.conf -f netSnmpExamples
netSnmpExamples.txt

but it doesnot read parameters defined in MIB file netSnmpExamples.txt
to generate the skeleton of the MIB.

Thanks,
Sagar.

On Fri, 2006-12-01 at 20:26 +0000, Dave Shield wrote:
> On 29/11/06, Sagar Shukla <sagar_shukla@persistent.co.in> wrote:
> > I couldnot find any options using mib2c utility to convert my MIB
> > file into its equivalent .c file which I can compile as a loadable
> > module. I want all the objects defined in MIB file to be part of the .c
> > module source.

>
> Yes - that's the basic purpose of "mib2c".
> Running it without any options would typically prompt you
> for certain characteristics of the MIB objects you're trying to
> model, and then generate a suitable template.
>
> What exactly have you tried so far?
>
> Dave



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?p...rge&CID=DEVDEV
_______________________________________________
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/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:51 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0