
Hi!
Rajbal> I just inherited some scripts which use the SMI tools Rajbal> (smilint, smidump) and am pretty new to this. So if this Rajbal> question is basic, pl excuse me; I have already searched the Rajbal> archives ...
Rajbal> When checking a set MIB modules using smilint, I get the Rajbal> following errors-
Rajbal> [...snip...] Rajbal> nortelPC-standardTextualConventionsV1_CC0066B.mib:42: [1] {} type Rajbal> `Gauge32' may only be defined in SMI/SPPI base modules Rajbal> nortelPC-standardTextualConventionsV1_CC0066B.mib:43: [1] {} type Rajbal> `Counter32' may only be defined in SMI/SPPI base modules Rajbal> nortelPC-standardTextualConventionsV1_CC0066B.mib:44: [1] {} type Rajbal> `Unsigned32' may only be defined in SMI/SPPI base modules Rajbal> nortelPC-standardTextualConventionsV1_CC0066B.mib:45: [1] {} type Rajbal> `Integer32' may only be defined in SMI/SPPI base modules Rajbal> nortelPC-textualConventionsV1_CC0066B.mib:57: [1] {} type `Unsigned64' Rajbal> may only be defined in SMI/SPPI base modules Rajbal> nortelPC-textualConventionsV1_CC0066B.mib:194: [2] {enum-zero} number Rajbal> enumeration contains zero value in SMIv1 MIB Rajbal> nortelPC-frameRelayUniV1_CC0066B.mib:36: [0] {} the SPPI Rajbal> construct/keyword `Unsigned64' may not be used in a MIB Rajbal> [end]
Rajbal> How do I define/setup a base module (since that seems to be Rajbal> core of the problem)? Is there anything else I am missing?
The error message may be misleading. It means that these descriptors (Gauge32, etc.) are well defined by the SMI language specification (in modules that are part of the language specification). So, when libsmi finds a definition for these types, it is only valid if the current module is such a base module (SNMPv2-SMI in case of SMIv2). You are not allowed to have a definition of these types in your own modules.
-frank