Template:FAQ:Misc 02

From Net-SNMP Wiki
Jump to: navigation, search

The parser used by both the agent and client programs is coded by hand. This parser has recently been re-vamped to allow control of which of the available MIBs should be included, and to handle duplicate object subidentifiers. The source code can be found in the snmplib directory (in 'parse.c'), and the parser is usually bundled into the library 'libnetsnmp.a'

Note that the parser attempts to be fairly forgiving of some common errors and incompatibilities in MIB files. The Net-SNMP tools accepting a MIB file without complaint does not imply that the MIB is strictly correct. Certain MIBs may need some amendments to allow them to be read correctly by the parser. Contact the coders' list for advice.