Archive for May, 2010

Parsing MIBs and tearing my hair out

Monday, May 3rd, 2010

It’s a frustrating business, this “covert MIB files to something readable with Ruby”. Net-SNMP has it sorted with a %MIB object in perl with information on all the MIB files that it has processed.

The biggest problem I face is that I need to parse all the MIB files using smidump (which I’ve already done), and store them in memory in some half-sensible format which I can then sanity-check and insert in to a database. The sanity checking is what’s taking time.

No wonder so many people do the ‘easy’ bit of SNMP :)