HI,
OK. that might be a silly question for gurus.
But still an answer from the SMI guru deserves much more than 25$ and which
i can't afford.
____________________________________________________________________________
___________
-Vinoth
iDEN OMC Software, Motorola
***************************************
*[X] General Business Information
*[ ] Motorola Internal Use only
*[ ] Motorola Confidential Proprietary
***************************************
____________________________________________________________________________
___________
>-----Original Message-----
>From: David T. Perkins [mailto:dperkins@dsperkins.com]
>Sent: Friday, December 27, 2002 12:27 AM
>To: Vinoth Palaniappan
>Cc: libsmi(a)ibr.cs.tu-bs.de
>Subject: RE: [libsmi] specifying OID value
>
>
>HI,
>
>When you say
>
> test-var9 OBJECT-TYPE
> ...
> ::= { testObjectIdentity(1) 1 }
> the OID value is { 1 1 }
>
>When you say
>
> test-var9 OBJECT-TYPE
> ...
> ::= { testObjectIdentity 1 }
> the OID value is { <the_oid_value_of_testObjectIdentity> 1 }
>
>This is "standard ASN.1".
>
>Please send a donation of US$25 to the LIBSMI Paypal account
>to help with expenses at the next meeting.
>
>At 10:53 PM 12/26/2002 +0530, Vinoth Palaniappan wrote:
>>HI David,
>> My intention was to specify an oid value for the mib variable
>>'test-var9': <oid-value for testObjectIdentity>.1 . For example, if
>>testObjectIdentity's oid-value is x.x.x, where x is a
>non-negative integer
>>then test-var9's oid-value should be x.x.x.1 . But it seems
>test-var9 is
>>given an oid-value of 1.1. Am i right?
>>
>>-Vinoth
>>iDEN OMC Software, Motorola
>>
>>>-----Original Message-----
>>>From: David T. Perkins [mailto:dperkins@dsperkins.com]
>>>Sent: Thursday, December 26, 2002 10:56 PM
>>>To: Frank Strauss; Vinoth Palaniappan
>>>Cc: libsmi(a)ibr.cs.tu-bs.de
>>>Subject: Re: [libsmi] specifying OID value
>>>
>>>
>>>HI,
>>>
>>>Frank - it is perfectly legal to specify "{
>testObjectIdentity(1) 1 }"
>>>for the OID value. And the result is the OID value of { 1 1 }
>>>Of course, this is probably not the desired result.
>>>
>>>At 02:08 PM 12/26/2002 +0100, Frank Strauss wrote:
>>>>Hi!
>>>>
>>>>Vinoth> I wrote a small mib module and tested with libsmi. I
>>>>Vinoth> encountered a problem and would like to know what i am
>>>>Vinoth> missing.
>>>>
>>>>Vinoth> testObjectIdentity OBJECT-IDENTITY [...]
>>>>Vinoth> ::= { cMIB 1 }
>>>>Vinoth> test-var9 OBJECT-TYPE [...]
>>>>Vinoth> ::= { testObjectIdentity(1) 1 } --LINE NUMBER 51
>>>>
>>>>Vinoth> I ran the command " smidump -l 5 -f smiv2 E-MIB " and
>>>got error:
>>>>Vinoth> "E-MIB:51: an object named `testObjectIdentity'
>already exists
>>>>Vinoth> smidump: module `E-MIB' contains errors, expect
>flawed output"
>>>>
>>>>Vinoth> If i change the line number 51 to ::= {
>testObjectIdentity 1 }
>>>>Vinoth> , i don't get any error. What is wrong in line number 51?
>>>>
>>>>The OID value of testObjectIdentity is already defined by the
>>>OBJECT-IDENTITY
>>>>construct. The "(1)" in "{ testObjectIdentity(1) 1 }" does
>>>not make sense.
>>>>
>>>>What meaning would you expect? A redundant repitition of
>the fact that
>>>>the last sub-oid of testObjectIdentity is "1"? Or a redefinition of
>>>>testObjectIdentity to the one-digit OID value "1" and the
>defintion of
>>>>test-var9 to "1.1"?
>>>>
>>>>Your change to "{ testObjectIdentity 1 }" is (syntactically)
>>>correct and
>>>>defines the value of test-var9 to "testObjectIdentity.1" ==
>>>"cMIB.1.1".
>>>>
>>>> -frank
>>>
>>>Regards,
>>>/david t. perkins
>>>
>