Problem with defining custom data type (TEXTUAL-CONVENTION)

This is a discussion on Problem with defining custom data type (TEXTUAL-CONVENTION) within the SNMP Users forums, part of the Networking and Network Related category; Hi, I'm trying to use a custom data type for storing version information composed of three numbers and a ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-19-2008
Manfred Wassmann
 
Posts: n/a
Default Problem with defining custom data type (TEXTUAL-CONVENTION)

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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:49 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0