I'm finding the solution to declare INDEX clause without using/bind with any variable in MIB table.
Generally when declare INDEX clause I use 1 variable as index e.g.
dataEntry OBJECT-TYPE
SYNTAX dataEntry
ACCESS not-accessible
STATUS mandatory
DESCRIPTION
"The entry of data Table"
INDEX { dataIndex }
::= { dataTable 1 }
dataEntry ::= SEQUENCE {
dataIndex
INTEGER,
dataValue
INTEGER
}
dataIndex OBJECT-TYPE
SYNTAX INTEGER
ACCESS read-only
STATUS mandatory
DESCRIPTION
"The index of data table"
::= { dataEntry 1 }
dataValue OBJECT-TYPE
.
.
but what I want is use dataIndex in INDEX clause but will not declare it in SEQUENCE and variable. something right this
dataEntry OBJECT-TYPE
SYNTAX dataEntry
ACCESS not-accessible
STATUS mandatory
DESCRIPTION
"The entry of data Table"
INDEX { dataIndex }
::= { dataTable 1 }
dataEntry ::= SEQUENCE {
dataValue
INTEGER
}
dataValue OBJECT-TYPE
.
.
What I wrote is compiled error for sure, but is it have possible solution for what I want?