[SNMP4J]Help creating a entry at USM MIB remotly

Nídia S. Campos nidiascampos at gmail.com
Thu Aug 17 19:40:27 CEST 2006


Hi,
I'd like to create a entry at USM MIB of TestAgent remotly, so I commented
the code that do this locally  to USMuser "SHADES" and deleted files with
*.cfg. So, I used the createIndex () methode to create the index, and I did
a set the oids bellows at:
securityName = "SHADES"
authProtocol= AuthSHA.ID
authKeyChange= "SHADESAuthPassword"
privProtocol=PrivDES.ID
privKeyChange="SHADESAuthPassword"
storageType=volatile
rowStatus=createAndGo

The operation fails at agent with this message, when it tries to create
authProtocol column:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
805996 [RequestPool.0] DEBUG org.snmp4j.agent.mo.DefaultMOTable  - Preparing
sub-request(1.3.6.1.6.3
.15.1.2.2.1.5.26.56.48.58.48.48.58.49.51.58.55.48.58.48.49.58.99.56.58.56.49.58.50.101.58.50.55.6.83
.72.65.68.69.83 = 1.3.6.1.6.3.10.1.1.3) for column:
org.snmp4j.agent.mo.snmp.AutonomousType[columnID
=5,syntax=6,default=1.3.6.1.6.3.10.1.1.1,mode=]
java.lang.Exception: Error 'Inconsistent value' generated at:
1.3.6.1.6.3.15.1.2.2.1.5.26.56.48.58.4
8.48.58.49.51.58.55.48.58.48.49.58.99.56.58.56.49.58.50.101.58.50.55.6.83.72.65.68.69.83=
1.3.6.1.6
.3.10.1.1.3
        at
org.snmp4j.agent.request.SnmpRequest$SnmpSubRequest.requestStatusChanged(
SnmpRequest.java
:592)
        at org.snmp4j.agent.request.RequestStatus.fireRequestStatusChanged(
RequestStatus.java:88)
        at org.snmp4j.agent.request.RequestStatus.setErrorStatus(
RequestStatus.java:50)
        at org.snmp4j.agent.mo.snmp.UsmMIB$UsmTableRow.prepare(UsmMIB.java
:357)
        at org.snmp4j.agent.mo.MOMutableColumn.prepare(MOMutableColumn.java
:122)
        at org.snmp4j.agent.mo.DefaultMOTable.prepare(DefaultMOTable.java
:534)
        at org.snmp4j.agent.mo.DefaultMOTable.prepare(DefaultMOTable.java
:436)
        at org.snmp4j.agent.CommandProcessor$SetHandler.prepare(
CommandProcessor.java:639)
        at org.snmp4j.agent.CommandProcessor$SetHandler.processPdu(
CommandProcessor.java:667)
        at org.snmp4j.agent.CommandProcessor.processRequest(
CommandProcessor.java:339)
        at org.snmp4j.agent.CommandProcessor.processRequest(
CommandProcessor.java:301)
        at org.snmp4j.agent.CommandProcessor.dispatchCommand(
CommandProcessor.java:280)
        at org.snmp4j.agent.CommandProcessor$Command.run(
CommandProcessor.java:444)
        at org.snmp4j.util.ThreadPool$TaskManager.run(ThreadPool.java:238)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I don't know why it happens if I'm using the same oid to AuthSHA.ID as
TestAgent........

Please, may someone help me?

Thanks in advance,
Nídia



More information about the SNMP4J mailing list