2010/1/25 Alexander King <[email protected]>: > 1. I define a completed MIB file(included scalars,tables,traps), > and make it right.
How did you check that the MIB file was "right"? What validation tools did you use? Perhaps if you posted the full MIB file, we might be able to comment. > 2.Get the generated code use the > tools: mib2c.iterate.conf,mib2c.scalar.conf,mib2c.table.conf, > and modify them But there isn't a template "mib2c.table.conf" ! > and delete the traps's OIDs Why? The code generated by the mib2c template listed above shouldn't cover the notifications, so there shouldn't be any mention of the trap OIDs. Assuming you defined the MIBs correctly. > 3.Delete the traps definitions in the MIB file,and keep all the other > unchange.especially the structure of the MIB and their OID relationship. That should not be necessary. > Am I right?I really think it is wrong. It certainly sounds as if you are doing something wrong. Either in your MIB file definitions, or in the code you are generating. But unless you show us the full MIB file (*without* deleting the trap definitions), tell us *exactly* what mib2c commands you ran, and show us the complete code that you are working with - it's almost impossible to say what's wrong. Dave ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
