Thanks Tanisha for your help. I have described it as follows.
operStatus OBJECT-TYPE
SYNTAX TruthValue
MAX-ACCESS read-only
STATUS current
DESCRIPTION
" This object reflects whether endpoint has been re-instated
into service or is out of service. If the value of this
object is 'up', service has been re-instated. If the
value is down', it is out of service."
::= { Information 3 }
can't I substitute TruthValue with( INTEGER{ down(0), up(1) } )
instead of defining TEXTUAL-CONVENTION.
Thanks,
Harendra
"No task is so humble that it does not offer an outlet for
individuality"
On Mon, 2009-04-06 at 12:22, Tanisha Kashyap wrote:
> 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."
--
Harendra Pratap Singh | Sr. Software Engineer | GlobalLogic Inc.
The Global Product Development Leader
USA | INDIA | UKRAINE | CHINA
Office: +91-120-434-2000 x 2969
Fax: +91-120-258-5721
www.globallogic.com
InfoWorld Award Winner for Agile Innovation
Backed by Sequoia, NEA and New Atlantic Ventures (part of the DFJ
network), GlobalLogic partners with emerging and established technology
companies to help them accelerate great products to market. GlobalLogic
has developed a unique model that combines distributed Agile
methods, innovative open source-based tools, and global teams of
world-class engineers to dramatically shorten product development
cycles. GlobalLogic has ongoing partnerships with more than 140
technology companies and has completed over 800 major product
releases over the past six years, including 300 in the last 12 months
with a better than 95% on-time delivery. Headquartered in Vienna,
Virginia, GlobalLogic has global development centers in the US, India,
China and Ukraine. By leveraging its InfoWorld award-winning method and
platform, GlobalLogic Velocity™, its global facilities and world-class
engineers, clients gain rapid time-to-market, improved quality and
reduced development expense.
Disclaimer:http://www.globallogic.com/email_disclaimer.txt
------------------------------------------------------------------------------
_______________________________________________
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