AW: Re: [SNMP4J]Help creating a entry at USM MIB remotly

fock at agentpp.com fock at agentpp.com
Wed Aug 23 15:34:57 CEST 2006


Please take a look at the RFC defining the
USM-MIB. A user cannot be created directly.
Instead it is created by cloning an existing 
user.

Best regards,
Frank

>To set USM MIB, I'm using SNMPv3 mesages and
>snmp.discoverAuthoritativeEngineID(remoteAddress, timeout) to make index and
>values of  the same entry to userUSM "SHADES" that comes with TestAgent. At
>agent, it gives a "No such Name" error when trying to create SecurityName
>column.
>
>Please, may someone help me?
>
>Nídia
>
>On 8/17/06, Nídia S. Campos <nidiascampos at gmail.com> wrote:
>>
>> 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
>>
>_______________________________________________
>SNMP4J mailing list
>SNMP4J at agentpp.org
>http://lists.agentpp.org/mailman/listinfo/snmp4j



More information about the SNMP4J mailing list