Page 1 of 1

Generated snmp source file

Posted: Tue Jan 05, 2016 2:57 pm
by SeeCwriter
I just noticed that the source file generated by snmptranslate does not have any of my custom MIB's objects. The file has reams of functions for objects under the mgmt.mib-2 OID (of which, only those under .system are referenced in my MIB), but nothing under mgmt.private.enterprises.30679.

Could this be due to the errors generated by snmptranslate I mentioned in my first post?

Also, of the 9 system objects defined in mib-2.system, only 3 are included in the source file (sysDescr, sysObjectID, sysServices).

Re: Generated snmp source file

Posted: Fri Jan 08, 2016 9:00 am
by SeeCwriter
Since I now know that the system objects are taken care of by the NB SNMP library, my question is reduced to my custom MIB objects. Why didn't snmptranslate create any stubs or function prototypes for them?

I've gone ahead and manually edited the source file to add my objects. So it simply a matter of curiosity at this point to see if maybe I did something wrong.