Textual enumeration in MIB

[email protected]
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Is there support in the SMIv2 spesification to have textual
enumerations? I could only find support for enumeration with INTEGER
and BITS.

Structure of Management Information Version 2 (SMIv2)
http://tools.ietf.org/html/rfc2578

Textual Conventions for SMIv2
http://tools.ietf.org/html/rfc2579


Consider the following scalar:
param2 OBJECT-TYPE
      SYNTAX      OCTET STRING { stopped("0"), ready("1"), running("2") }
      MAX-ACCESS  read-write
      STATUS      current
      DESCRIPTION
	""
      ::= { run 1 }

This gives me a validation error:
   {internal-other} syntax error, unexpected '{', expecting STATUS
   {internal-other} syntax error, unexpected MAX_ACCESS


What I actually have is a list of strings for this scalar { stopped,
ready, running }.



------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
TUNE You got it built. Now make it sing. Tune shows you how.
http://goparallel.sourceforge.net
_______________________________________________
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.