practicing mib2c tool
"xuemei" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, Thanks for the previous response on my question. Now I have more. While waiting for the IANA number, is there any way to practice the mib2c? I create a mini MIB file, it is validated OK using a on line mib validator. Yet the only object inside is a OBJECT-IDENTIFIER, I give the 123456789 as a fake IANA number which should not have any Collision with the existing ones (due to I am waiting for the real to come ), each time I run "mib2c 1.3.6.1.4.1.123456789", the output is like following: " mib2c has multiple configuration files depending on the type of code you need to write. You must pick one depending on your need. You requested mib2c to be run on the following part of the MIB tree: OID: enterprises numeric translation: .1.3.6.1.4.1 number of scalars within: 69 number of tables within: 16 number of notifications within: 5 First, do you want to generate code that is compatible with the ucd-snmp 4.X line of code, or code for the newer Net-SNMP 5.X code base (which provides a much greater choice of APIs to pick from): 1) ucd-snmp style code 2) Net-SNMP style code ........................."" My question is 1.It looks like the mib2c does not like the fake enterprise number , that is why it decides to start from the 1.3.6.1.4.1 each time? 2.Any way without having a real IANA number, I could actually practice to use mib2c? 3.once the c code is generated, what is your recommendation, should I recompile the agent to include the new functions or better making them as DLL for agent to load? In case of recompile, should I use the redhat rpmbuild command or use the make file in the agent package? Thanks in advance, shemy