Converting MIB to CPP

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

Converting MIB to CPP

Post 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
rnixon
Posts: 833
Joined: Thu Apr 24, 2008 3:59 pm

Re: Converting MIB to CPP

Post by rnixon »

If you run the same process on your previous file with no changes whatsoever, do you get a .cpp file?
User avatar
pbreed
Posts: 1088
Joined: Thu Apr 24, 2008 3:58 pm

Re: Converting MIB to CPP

Post by pbreed »

Some how the mib files are not in the path of SNMP translate
User avatar
pbreed
Posts: 1088
Joined: Thu Apr 24, 2008 3:58 pm

Re: Converting MIB to CPP

Post by pbreed »

You can also hand edit the file if the changes are small...
Post Reply