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.