Thanks Dave. The reason for my confusion regarding the SMI being specific to SNMP Version was the text in the FROM clause.
As per my understanding from your earlier reply SNMPv2-SMI implies SMIv2 independent of the SNMP Version. "No task is so humble that it does not offer an outlet for individuality" -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield Sent: Thursday, March 12, 2009 3:10 PM To: Tanisha Kashyap Cc: [email protected] Subject: Re: MIB 2009/3/12 Tanisha Kashyap <[email protected]>: > Also I have some doubt about the IMPORTS clause i.e. what should be imported? Short answer: everything you refer to in the MIB file. Longer answer: There are two general sets of definition that you would typically IMPORT. The first are "standard" definitions used in the basic structure of the MIB The core of this will be: OBJECT-GROUP FROM SNMPv2-CONF OBJECT-TYPE, MODULE-IDENTITY FROM SNMPv2-SMI plus any standard (but non-core) syntax types that you will be using (Integer32, Unsigned32, etc) - also from SNMPv2-SMI If you're using any of the structured Textual Conventions (DisplayString, RowStatus, etc), then you should also import these from SNMPv2-TC and/or SNMP-FRAMEWORK-MIB. And if you are defining traps, then you should import NOTIFICATION-TYPE from SNMPv2-SMI and NOTIFICATION-GROUP from SNMPv2-CONF The second set of definitions to IMPORT are those that specify how your MIB fits into the overall MIB tree. This will typically be the object used in the definition of the MODULE-IDENTITY clause, plus any other "cross references" to other MIBs (such as private syntax types, external index objects, etc) The best approach is probably to write your MIB, then put it through something like "smilint". Fix any problems that this reports, and keep doing this until smilint reports it clean. Dave "DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error,please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus." ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ 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
