RE: ENUM syntax type

Tanisha Kashyap <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <08A2197FCF31F642988F149222F8B88D0FE8815B20@GUREXMB01.ASIAN.AD.ARICENT.COM>
You can use something like:

operStatus   OBJECT-TYPE
    SYNTAX      OperStatus
    MAX-ACCESS  <whatever u want to use>
    STATUS      < whatever u want to use>
    DESCRIPTION < whatever u want to use>
    ::= { whatever u want to use }

OperStatus ::= TEXTUAL-CONVENTION
    STATUS    < whatever u want to use>
    DESCRIPTION < whatever u want to use>
    SYNTAX    INTEGER{  value1(0),
                                    value2(1)
                        }

"No task is so humble that it does not offer an outlet for individuality"
________________________________
From: Harendra Pratap Singh [mailto:[email protected]]
Sent: Monday, April 06, 2009 11:55 AM
To: [email protected]
Subject: ENUM syntax type

Hi,

I am writing a MIB file. I have defined an object operstatus. For which I want to define its type. Is there a way to define it ENUM? I mean Like TruthValue which has value 1 and 2. But In my case I want to give it value 0 and 1. Thats why the need for ENUM.

Thanks,
Harendra

"No task is so humble that it does not offer an outlet for individuality"

________________________________
"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."

------------------------------------------------------------------------------

_______________________________________________
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.