Hi,
First of all, OIDs never start with a dot character. Prepending a dot
may cause problems.
You get the notWritable error, because you defined all the columns
READ_ONLY. This should not be suprising ;-)
Best regards,
Frank
Am 03.02.2014 10:21, schrieb Giuseppe Giusti:
When i try to set a scalar i have no problem but when i try to set a entry
of a table i get an error
why?
this is the models table
MOTableSubIndex[] subIndexes
= new MOTableSubIndex[]{new
MOTableSubIndex(SMIConstants.SYNTAX_INTEGER)};
MOTableIndex indexDef = new MOTableIndex(subIndexes, false);
MOColumn[] columns = new MOColumn[11];
int c = 0;
columns[c++]
= new MOColumn(c, SMIConstants.SYNTAX_INTEGER,
MOAccessImpl.ACCESS_READ_ONLY); // IndexCh Integer
columns[c++]
= new MOColumn(c, SMIConstants.SYNTAX_OCTET_STRING,
MOAccessImpl.ACCESS_READ_WRITE);// nameCh
columns[c++]
= new MOColumn(c, SMIConstants.SYNTAX_INTEGER,
MOAccessImpl.ACCESS_READ_ONLY); // acq Daily
columns[c++]
= new MOColumn(c, SMIConstants.SYNTAX_INTEGER,
MOAccessImpl.ACCESS_READ_ONLY); // acq Weekly
columns[c++]
= new MOColumn(c, SMIConstants.SYNTAX_INTEGER,
MOAccessImpl.ACCESS_READ_ONLY); // acq Monthly
columns[c++]
= new MOColumn(c, SMIConstants.SYNTAX_INTEGER,
MOAccessImpl.ACCESS_READ_ONLY); // acq Yearly
columns[c++]
= new MOColumn(c, SMIConstants.SYNTAX_INTEGER,
MOAccessImpl.ACCESS_READ_ONLY); // rejected Daily
columns[c++]
= new MOColumn(c, SMIConstants.SYNTAX_INTEGER,
MOAccessImpl.ACCESS_READ_ONLY); // rejected Weekly
columns[c++]
= new MOColumn(c, SMIConstants.SYNTAX_INTEGER,
MOAccessImpl.ACCESS_READ_ONLY); // rejected Monthly
columns[c++]
= new MOColumn(c, SMIConstants.SYNTAX_INTEGER,
MOAccessImpl.ACCESS_READ_ONLY); // rejected Yearly
columns[c++]
= new MOColumn(c, SMIConstants.SYNTAX_INTEGER,
MOAccessImpl.ACCESS_READ_ONLY); // not Assigned To
Volume
DefaultMOTable ifTable
= new DefaultMOTable(new OID(".1.3.6.1.4.1.28708.1.1.1",
indexDef, columns);
MOMutableTableModel model = (MOMutableTableModel)
ifTable.getModel();
ifTable.setVolatile(false);
agent.registerManagedObject(ifTable);
the second columns is set to read and write so,
are all OIDs under the prefix 1.3.6.1.4.1.28708.1.1.1.2 writeable?
when i try to set OID entry 1.3.6.1.4.1.28708.1.1.1.2.3 i get :
Set request for OID 1.3.6.1.4.1.28708.1.1.1.2.3
class org.snmp4j.smi.OctetString set-value: changeValue
date:Mon Feb 03 10:13:38 CET 2014
java.lang.Exception: Error 'Not writable' generated at:
1.3.6.1.4.1.28708.1.1.1.2.3 = changeValue
_______________________________________________
SNMP4J mailing list
[email protected]
https://s16675406.onlinehome-server.info/mailman/listinfo/snmp4j
--
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax: +49 7024 8688231
_______________________________________________
SNMP4J mailing list
[email protected]
https://s16675406.onlinehome-server.info/mailman/listinfo/snmp4j