Problem with defining custom data type (TEXTUAL-CONVENTION)

Manfred Wassmann <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

I'm trying to use a custom data type for storing version information
composed of three numbers and a release state like follows:

---8<----------------------------------------------------------------------
     MyVersionDigits ::= TEXTUAL-CONVENTION
     DISPLAY-HINT "1d.2d.2d"
     STATUS current
     DESCRIPTION "
     A version number composed of a major, minor and patch number.
     "
     SYNTAX OCTET STRING (SIZE (5))

     MyVersionState ::= TEXTUAL-CONVENTION
     STATUS current
     DESCRIPTION "
     Release state.
     "
     SYNTAX INTEGER {
         unknown(1),
         alpha(8),
         beta(9),
         candidate(10),
         final(11)
     }

     MyVersionNumber ::= SEQUENCE {
         myVersionDigits MyVersionDigits,
         myVersionState MyVersionState
     }

     myVersion OBJECT-TYPE
     SYNTAX MyVersionNumber
     MAX-ACCESS  read-only
     STATUS      current
     DESCRIPTION "
     Version number of the current firmware of a my(TM) device.
     "
     ::= { myStatus 1 }
---------------------------------------------------------------------->8---

>From my point of view this would completely define MyVersionNumber as
well as reference the types MyVersionDigits and MyVersionState but
smilint complains:

MY-MIB.txt:58: [1] unknown object identifier label `myVersionDigits'
MY-MIB.txt:60: [1] unknown object identifier label `myVersionState'
MY-MIB.txt:76: [2] type `MyVersionNumber' of node `myVersion' does not
resolve to a known base type
MY-MIB.txt:36: [5] warning: current type `MyVersionDigits' is not
referenced in this module
MY-MIB.txt:44: [5] warning: current type `MyVersionState' is not
referenced in this module

So what is the correct way to handle this?

regards manfred

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.