Slashdot Mirror


User: josher

josher's activity in the archive.

Stories
0
Comments
1
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1

  1. You can write a MIB... on Writing SNMP MIBs from C Structs? · · Score: 1

    I can't imagine a tool that would take a header file and convert it into a MIB. Too much additional info would be required, and providing all of that info would be just as tedious as constructing the MIB by hand: either way, you would need to learn some funky new syntax and type a whole bunch of text.

    Building a MIB isn't as hard as you make it sound. Yes, all of the different possible field attributes can be daunting. Yes, the syntax is arcane (and probably should be replaced by an XML schema). But really, you should only need the bare minimum to get access to the data you want.

    My advice: skim the SNMP RFC, then hunt around and find a simple third-party MIB to use as a template. Don't try to write it from scratch. Finally, fire up an agent with the MIB, and talk to it using some standard snmpget/snmpset tools to make sure it's all happy before you try to patch it into your larger system.

    Good luck!