How to set/get value for a MIB table index?

Hi Frank,
It seems in current implementation, there’s no way to set/get value for MIB table index.

e.g. in this MIB table.
gspCPUTable OBJECT-TYPE
SYNTAX SEQUENCE OF GspCPUEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
“This table contains information about CPU statistics.”
::= { gspCPU 1 }

gspCPUEntry OBJECT-TYPE
    SYNTAX      GspCPUEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
            "An entry in the CPU table."
    INDEX       {
                    entPhysicalIndex,
                    gspCPUIndex
                }
    ::= { gspCPUTable 1 }

GspCPUEntry ::=
    SEQUENCE {
        gspCPUIndex             GstcListIndex,
        gspCPUDescr             DisplayString,
        gspCPULoadAvg1min       GspCPULoadAvg,
        gspCPULoadAvg5min       GspCPULoadAvg,
        gspCPULoadAvg15min      GspCPULoadAvg
    }

related defination for index:
// Index OID definitions
public static final OID oidEntPhysicalIndex = new OID(new int[] { 1, 3, 6, 1, 2, 1, 47, 1, 1, 1, 1, 1 });
public static final OID oidGspCPUIndex = new OID(new int[] { 1, 3, 6, 1, 4, 1, 44886, 10, 11, 1, 1, 1, 1, 1 });

If I need to set value for gspCPUIndex, how should I coding?

Current output for walk the oid is:
[xxx@localhost ~]$ snmpbulkwalk -c public -v 2c 127.0.0.1 1.3.6.1.4.1.44886.10.11.1.1.1.1.1
SNMPv2-SMI::enterprises.44886.10.11.1.1.1.1.1 = No Such Object available on this agent at this OID

Thanks.

From you MIB specification quote it is unclear whether gspCPUIndex is accessible or not. In SMIv2, the index should be notAccessible which means, that are not able to access it because it simply does not exists (as column). The index is part of the cell OID. That avoids redundancy and is normal SNMP standard.

In any case, even if an INDEX column is accessible its maximum access is read-only. Thus, you never will be able to SET an SNMP index value (directly).

Thanks Frank.
I see below info in MIB.
So understand now.

gspCPUIndex OBJECT-TYPE
    SYNTAX      GstcListIndex
    MAX-ACCESS  not-accessible