Generated snmp source file

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

Generated snmp source file

Post 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).
SeeCwriter
Posts: 635
Joined: Mon May 12, 2008 10:55 am

Re: Generated snmp source file

Post 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.
Post Reply