SNMP MIB file

Discussion to talk about software related topics only.
Post Reply
SeeCwriter
Posts: 635
Joined: Mon May 12, 2008 10:55 am

SNMP MIB file

Post by SeeCwriter »

The NB Runtime Lib Ref manual says to put the MIB text file you created in directory c:\Nburn\mibs, and
to delete the .index file in that directory. And that the index file will automatically be recreated by the MIB
tools.

First, there was no .index file in that directory. And after multiple builds, no index file has been created.

Second, as far as I can determine, the manual never identifies what "MIB tools" it is referring to for
creating the index file. Since it used the word "automatically", I thought that these "tools" would be
invoked automatically when the application was built. But that doesn't seem to be the case.

What do I need to do to create the MIB index file?
rnixon
Posts: 833
Joined: Thu Apr 24, 2008 3:59 pm

Re: SNMP MIB file

Post by rnixon »

Just as a sanity check, have you tried building/running any of the snmp examples provided by NetBurner?
SeeCwriter
Posts: 635
Joined: Mon May 12, 2008 10:55 am

Re: SNMP MIB file

Post by SeeCwriter »

Yes. I went through the Eclipse Quick Start Guide and created a "Hello World" project using one of the NB
example programs. And I was able to build and run it successfully as both a debug project and as a release
project.
And in fact, that's the same project I'm working with now. I'm trying to add SNMP to it. First I added the
same include files that are in the SNMP examples, and it compiled and ran fine. Then I added my MIB file
to c:\nburn\mibs, and it compiled and ran fine. But when I added the call to StartSnmpProcessor it would compile, but when run, it crashes when it calls StartSnmpProcessor.

I then remembered that the manual mentioned this .index file that is supposed to be in the mib directory.
But it was never there, and it never gets recreated as the manual says it should.

And as I was reviewing the make file, I noticed that it says to run "make depend" when files are added to
the project or when new include files are added to a source file. I didn't do that, so I ran the depend. It
generated error: "No rule to make target 'SNMPTestdepend'..." I don't know what to do to fix that.
rnixon
Posts: 833
Joined: Thu Apr 24, 2008 3:59 pm

Re: SNMP MIB file

Post by rnixon »

Hi,

I was referring to the snmp examples specifically. They are in \nburn\examples\snmp. That way you shouldn't have to add any of your own code to verify the tools work.
SeeCwriter
Posts: 635
Joined: Mon May 12, 2008 10:55 am

Re: SNMP MIB file

Post by SeeCwriter »

Doh! Ok, I created a new project for example project nburnmib. It seems to work. This particular example
has the example mib file. But I don't believe the mib file (Nburn_Cname_Mib.txt) is actually used.
And there is still no .index file in c:\nburn\mibs.
It's also interesting that no make file was created for this project. So how does it know how to make the
target?
rnixon
Posts: 833
Joined: Thu Apr 24, 2008 3:59 pm

Re: SNMP MIB file

Post by rnixon »

If you are building in eclipse, it is the project manager and no makefiles are used. If you see a makefile it is only used when using the tools with the command line. If you are using command line tools (which is fine) then you should be able to copy a similar makefile, modify it for the example, and then build from the command line.
greengene
Posts: 164
Joined: Wed May 14, 2008 11:20 am
Location: Lakeside, CA

Re: SNMP MIB file

Post by greengene »

snmptranslate generates the .index file.
Post Reply