
HI, I wrote a small mib module and tested with libsmi. I encountered a problem and would like to know what i am missing.
<-------------------START OF MIB---------------------------> C-MIB DEFINITIONS ::= BEGIN
IMPORTS MODULE-IDENTITY, OBJECT-IDENTITY FROM SNMPv2-SMI TestString FROM A-MIB; cMIB MODULE-IDENTITY [...] ::= { snmpModules 100 }
testObjectIdentity OBJECT-IDENTITY STATUS current DESCRIPTION "abc." REFERENCE "xyz." ::= { cMIB 1 }
test-var9 OBJECT-TYPE SYNTAX TestString MAX-ACCESS read-only STATUS current DESCRIPTION "The management context from which to obtain mteTriggerValueID." ::= { testObjectIdentity(1) 1 } --LINE NUMBER 51
END <-------------------END OF MIB--------------------------->
I ran the command " smidump -l 5 -f smiv2 E-MIB " and got error: "E-MIB:51: an object named `testObjectIdentity' already exists smidump: module `E-MIB' contains errors, expect flawed output"
If i change the line number 51 to ::= { testObjectIdentity 1 } , i don't get any error. What is wrong in line number 51?
____________________________________________________________________________ ___________ -Vinoth iDEN OMC Software, Motorola
*************************************** *[ ] General Business Information *[X] Motorola Internal Use only *[ ] Motorola Confidential Proprietary *************************************** ____________________________________________________________________________ ___________