[SNMP4J]Adding snmpTargetAddrEntry

Nídia S. Campos nidiascampos at gmail.com
Fri Jul 7 22:46:09 CEST 2006


After VACM accepts SET-REQUEST, TestAgent gives this message and stops:

243550 [RequestPool.2] DEBUG org.snmp4j.agent.mo.snmp.VacmMIB  - Access
allowed for view 'fullWriteView' by subtree 1.3 for OID
1.3.6.1.6.3.12.1.2.1.2.116.101.115.116.49
243550 [RequestPool.2] DEBUG org.snmp4j.agent.DefaultMOServer  - Waiting for
lock on DefaultMOTable[id=1.3.6.1.6.3.12.1.2.1,index=
org.snmp4j.agent.mo.snmp.SnmpTargetMIB$2 at 2aca0115,columns=[
org.snmp4j.agent.mo.MOMutableColumn[columnID=2,syntax=6,default=,mode=],
org.snmp4j.agent.mo.MOMutableColumn[columnID=3,syntax=4,default=,mode=],
org.snmp4j.agent.mo.MOMutableColumn[columnID=4,syntax=2,default=1500,mode=],
org.snmp4j.agent.mo.MOMutableColumn[columnID=5,syntax=2,default=3,mode=],
org.snmp4j.agent.mo.snmp.SnmpTagList[columnID=6,syntax=4,default=,mode=],
org.snmp4j.agent.mo.MOMutableColumn[columnID=7,syntax=4,default=,mode=],
org.snmp4j.agent.mo.snmp.StorageType[columnID=8,syntax=2,default=3,mode=],
org.snmp4j.agent.mo.snmp.RowStatus[columnID=9,syntax=2,default=null,mode=]]]



if I set, for example sysName.0, TestAgent will responds:

243638 [RequestPool.0] DEBUG org.snmp4j.agent.mo.snmp.VacmMIB  - Access
allowed for view 'fullWriteView' by subtree 1.3 for OID 1.3.6.1.2.1.1.5.0
243638 [RequestPool.0] DEBUG org.snmp4j.agent.DefaultMOServer  - Acquired
lock on org.snmp4j.agent.mo.snmp.DisplayStringScalar at 204f80d6 for
org.snmp4j.agent.request.SnmpRequest at 3
243638 [RequestPool.0] DEBUG org.snmp4j.agent.DefaultMOServer  - Removed
lock on org.snmp4j.agent.mo.snmp.DisplayStringScalar at 204f80d6 by
org.snmp4j.agent.request.SnmpRequest at 3
243639 [RequestPool.0] DEBUG org.snmp4j.transport.DefaultUdpTransportMapping
- Sending message to 200.129.46.39/2110 with length 48:
30:2e:02:01:01:04:06:70:75:62:6c:69:63:a2:21:02:04:1e:5c:03:6b:02:01:00:02:01:00:30:13:30:11:06:08:2b:06:01:02:01:01:05:00:04:05:61:73:64:61:66



Please, can anyone  help me?


On 7/5/06, Nídia S. Campos <nidiascampos at gmail.com> wrote:
>
> Hi,
> I am trying to add a entry in snmpTargetAddrTable  of  TestAgent from a
> manager application, but there is timeout......
> The index (snmpTargetAddrName) is genarated by the same  static methode
> MOTableRowIndex.createSubIndex(OctetString, true), so:
> String index = "116.101.115.116" that means "test" and there is no entry
> in this table.
>
> All snmpTagetAddr oids have this index like snmpTargetAddrTDomain
> +="."+index
>
> So the variable binding to each object is below:
>
> String transportDomainUdpIpv4 = "1.3.6.1.2.1.100.1.1"; //such  as
> org.snmp4j.agent.mo.snmp.TransportDomains. transportDomainUdpIpv4
>
> //variable bindings
> snmpTargetAddrTDomain = new OID(transportDomainUdpIpv4);
> snmpTargetAddrTAddress =new OctetString("0.0.0.1/162");
> snmpTargetAddrTimeout =new Integer32(200);
> snmpTargetAddrRetryCount =new Integer32(1);
> snmpTargetAddrTagList =new OctetString("test");
> snmpTargetAddrParams=new OctetString("v2c"); //there is a entry in
> snmpTargetParamsTable with this index
> snmpTargetAddrStorageType=new Integer32(4);//such as
> org.snmp4j.agent.mo.snmp.StorageType.volatile_
> snmpTargetAddrRowStatus=new Integer32(4);//such as
> org.snmp4j.agent.mo.snmp.RowStatus.createAndGo (recommendation  of RFC
> 2273)
>
> The response packet for this set  is null so timeout.....
> The community string is "public' and the pdu version is "v2c", so I think
> that I have access to read and write access, but the MAX-ACCESS of these
> objects is read-create, and I don't know if VACM MIB is configured to this.
>
> So, what am I doing  wrong?
>
> Thanks in advance,
> Nídia
> *
> *
>



More information about the SNMP4J mailing list