R: [SNMP4J] SNMPv3

Rododendro Ivan ivan.rododendro at italtel-consultant.com
Mon Nov 27 09:57:20 CET 2006


Hi Frank, thank you for your response.
 
How can I check the engine IDs of the agents ? 
 
Ivan

________________________________

Da: Frank Fock [mailto:fock at agentpp.com]
Inviato: dom 26/11/2006 10.20
A: Rododendro Ivan
Cc: snmp4j at agentpp.org
Oggetto: Re: [SNMP4J] SNMPv3



Hi Ivan,

It seems that your agents use the same engine ID which
is forbidden by SNMPv3.

Best regards,
Frank

Rododendro Ivan wrote:
> Hi again Frank,
> I have a problem sending PDU to two agents (net-snmp) SNMPV3 on different IPs with the same MIB.
> 
> On the agents, the same USM user, auth & priv protocol & passwords are configured. When I run the following test code, the second SNMP response is null. If I invert the sending sequence all is ok.
> 
> When sending the requests in the order that cause the second response to be null, the last message from the agent is carriing the OID 1.3.6.1.6.3.15.1.1.2.0.
> 
> What is wrong?
> 
> Thanks,
>
> Ivan Rododendro
> public void runTest() throws IOException, SnmpException
>
> {
>
> Snmp snmp = createSnmpObject(1001);
>
> org.snmp4j.UserTarget target101 = new org.snmp4j.UserTarget();
>
> target101.setAddress(new UdpAddress("138.132.95.101/" + 161));
>
> target101.setRetries(0);
>
> target101.setTimeout(1500);
>
> target101.setVersion(SnmpCostants.VERSION3);
>
> target101.setSecurityLevel(SnmpCostants.SECURYTY_LEVEL_AUTH_PRIV);
>
> target101.setSecurityName(new OctetString("maf"));
>
> org.snmp4j.UserTarget target133 = new org.snmp4j.UserTarget();
>
> target133.setAddress(new UdpAddress("138.132.95.133/" + 161));
>
> target133.setRetries(0);
>
> target133.setTimeout(1500);
>
> target133.setVersion(SnmpCostants.VERSION3);
>
> target133.setSecurityLevel(SnmpCostants.SECURYTY_LEVEL_AUTH_PRIV);
>
> target133.setSecurityName(new OctetString("maf"));
>
> org.snmp4j.PDU pdu = new ScopedPDU();
>
> pdu.add(new org.snmp4j.smi.VariableBinding(new OID(
>
> MfConstants.MF_SEQUENCE_OID)));
>
> pdu.setType(org.snmp4j.PDU.GET);
>
> ResponseEvent response101 = snmp.send(pdu, target101);
>
> ResponseEvent response133 = snmp.send(pdu, target133);
>
> }
>
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com






More information about the SNMP4J mailing list