
Like I said, I'm not arguing how bad the MIB syntax is. But I dont have time to fix hundreds of commercial mibs. This effectively makes libsmi unusable for us. Is there no way at all to have it continue parsing a mib after it finds an error? Jae Muzzin Netmon Technical Support [1]jae@netmon.ca 1-800-944-4511 ext 223
Juergen Schoenwaelder wrote:
On Fri, Apr 13, 2007 at 08:31:51AM -0400, Jae Muzzin wrote:
Ok, the thing is though, we have a few hundred commercial MIBs to import, many of them throw errors. I won't argue the validity of their syntax, but net-snmp has no problem parsing them, and that is what we currently use. Is there some way to configure libsmi to be less strict with its parsing, or skip imports or definitions that have errors?
We are proud there there is no such option.
Besides this, libsmi does actually try to continue as much as possible after errors. If you dislike seeing how bad the input is, redirect the error messages to /dev/zero (and then it is your responsibility that you did so).
/js
References
1. mailto:jae@netmon.ca