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?
SNMP MIB file
Re: SNMP MIB file
Just as a sanity check, have you tried building/running any of the snmp examples provided by NetBurner?
-
- Posts: 635
- Joined: Mon May 12, 2008 10:55 am
Re: SNMP MIB file
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.
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.
Re: SNMP MIB file
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.
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.
-
- Posts: 635
- Joined: Mon May 12, 2008 10:55 am
Re: SNMP MIB file
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?
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?
Re: SNMP MIB file
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.
Re: SNMP MIB file
snmptranslate generates the .index file.