9

Does anybody know a good tool to assist in the development of an SNMP MIB with correct formatting and syntax?

If possible, it should be free and run under Linux.

Ilmari Karonen
  • 49,047
  • 9
  • 93
  • 153

5 Answers5

3

For a very quick & dirty systax-hightlighter, try the default color syntax highlighting in vim. Below is a screenshot from a MIB-II file in vim.

enter image description here

k1eran
  • 4,492
  • 8
  • 50
  • 73
  • 1
    For this to work it seems to be necessary to choose the right filename extension, e.g. '.mib' – Gerd Jun 14 '22 at 09:59
3

You could always use the snmp-mode in emacs for syntax highlighting.

Mathias
  • 33,351
  • 7
  • 26
  • 33
2

According to this net-snmp howto, there is a tool called smilint from the smilib package that they recommend. Sounds more directed than using snmptranslate.

See also this ietf page for descriptions on usage.

Andrew Edgecombe
  • 39,594
  • 3
  • 35
  • 61
  • Actually I am aware of these tools and am quite comfortable with writing SNMP MIBS. I wasn't really looking for a syntax checker, rather a tool which will speed up the process. –  Dec 18 '08 at 12:50
0

I used http://www.mibdesigner.com/ couple of times and I find it to be a valuable tool significantly reducing the MIB design time.

It allows me to easily reorder parts of MIB and rename OIDs. More important it checks not only for invalid syntax but also for commonly used design and recommendation violations. The output is nicely formatted.

L.R.
  • 977
  • 6
  • 22
0

I've been using MIB Explorer Lite which has a syntax checker whenever you load a MIB. There's a free trial which I think lasts about 30 days.

Duncan
  • 858
  • 1
  • 11
  • 29