[SNMP4J] Set on read-write column objects gives "noCreation"(v2c)/"no such variable"(V1) error

Harsha HR harshah at calsoftlabs.com
Tue Jul 13 16:17:48 CEST 2010


Hi All,

I am using latest jars downloaded from the  snmp4j website. (i.e,  
/snmp4j-agent-1.4.1.jar/ and  /snmp4j-1.11.1.jar/ )

When i try to set the column('ACCESSIBLE_FOR_READ_WRITE') of a table i 
get the error as below:

16812 [RequestPool.0] DEBUG org.snmp4j.agent.mo.DefaultMOTable  - 
Preparing sub-request 
(1.3.6.1.4.1.9070.1.2.1.1.9.1.4.4.79.85.84.65.84.80.82.79.86.73.68.69.82.45.79.85.84.80.85.84 
= newAttrValue) for column: 
org.snmp4j.agent.mo.MOMutableColumn[columnID=4,syntax=4,default=null,mutableInService=true,mandatory=true]
16812 [RequestPool.0] DEBUG org.snmp4j.agent.mo.DefaultMOTable  - 
Invalid index 
'4.79.85.84.65.84.80.82.79.86.73.68.69.82.45.79.85.84.80.85.84' for row 
creation in table 1.3.6.1.4.1.9070.1.2.1.1.9.1
java.lang.Exception: Error 'Unable to create object' generated at: 
1.3.6.1.4.1.9070.1.2.1.1.9.1.4.4.79.85.84.65.84.80.82.79.86.73.68.69.82.45.79.85.84.80.85.84 
= newAttrValue
    at 
org.snmp4j.agent.request.SnmpRequest$SnmpSubRequest.requestStatusChanged(SnmpRequest.java:627)
    at 
org.snmp4j.agent.request.RequestStatus.fireRequestStatusChanged(RequestStatus.java:90)
    at 
org.snmp4j.agent.request.RequestStatus.setErrorStatus(RequestStatus.java:52)
    at org.snmp4j.agent.mo.DefaultMOTable.prepare(DefaultMOTable.java:647)
    at 
org.snmp4j.agent.CommandProcessor$SetHandler.prepare(CommandProcessor.java:793)
    at 
org.snmp4j.agent.CommandProcessor$SetHandler.processPdu(CommandProcessor.java:833)
    at 
org.snmp4j.agent.CommandProcessor.processRequest(CommandProcessor.java:417)
    at 
org.snmp4j.agent.CommandProcessor.processRequest(CommandProcessor.java:378)
    at 
org.snmp4j.agent.CommandProcessor.dispatchCommand(CommandProcessor.java:334)
    at 
org.snmp4j.agent.CommandProcessor$Command.run(CommandProcessor.java:555)
    at org.snmp4j.util.ThreadPool$TaskManager.run(ThreadPool.java:239)

A "no creation" error is received by the manager when snmp v2c set is 
issued.
A "no such variable" error is received by the manager when snmp v1 set 
is issued.

Could you please help us resolve the issue ?

Best Regards,
Harsha



More information about the SNMP4J mailing list