Page 1 of 1

Converting MIB to CPP

Posted: Tue Jul 28, 2015 10:30 am
by SeeCwriter
About 4-years ago I added SNMP to our NB application. I used snmptranslate along with our custom MIBs and NB MIBs and created a .cpp file.
I've made some changes to our MIBs and need to update our NB application, so I followed the same procedure as before. But this time, instead of a list of callback prototypes and macros to build the MIB tree, there is only a few comments. Other than the include files, the following is the full content of the generated .cpp file.

Code: Select all

//Un comment these variables if you want to use them


/*Definition of Table add delete functions */


/* Read function prototypes.*/


/* Write function prototypes.*/


/* Read Table pointer definition*/


/* Write Table pointer definition*/


/* Table Function implmentations*/


/* Function implmentation*/
The MIB file changes were fairly small, and the MIBs are working with other devices we have. Is there something new I need to do that's been added over the years?

Steve

Re: Converting MIB to CPP

Posted: Tue Jul 28, 2015 11:25 am
by rnixon
If you run the same process on your previous file with no changes whatsoever, do you get a .cpp file?

Re: Converting MIB to CPP

Posted: Tue Jul 28, 2015 4:06 pm
by pbreed
Some how the mib files are not in the path of SNMP translate

Re: Converting MIB to CPP

Posted: Tue Jul 28, 2015 4:08 pm
by pbreed
You can also hand edit the file if the changes are small...