Hi, You need to configure the VACM properly. The USM itself only checks if the authentication or privacy is consistent. But the VACM sets the requirements a request have to fulfill.
Best regards, Frank On 15.06.2010 22:46, Idan Shai (ishai) wrote: > Hi, > > > > I am using snmp4j that support snmpv3. > > I define usm as you can see below. > > > > this.usm = new USM(SecurityProtocols.getInstance(), this.engineId, 0); > > SecurityModels.getInstance().addSecurityModel(this.usm); > > > > Example of adding users : > > > > UsmUser user = new UsmUser(new OctetString("username"), AuthSHA.ID, > > new OctetString("auth1234"), PrivDES.ID, new > OctetString( > > "priv1234")); > > this.usm.addUser(user.getSecurityName(), null, user); > > > > The problems is that when I run some snmp command like snmpget it works > OK no matter what password I used for auth or priv it works OK. Only if > I send wrong username it failed. > > > > Why the configuration of auth, encrypt doesn't have the effect ? > > > > Thanks > > > > > > _______________________________________________ > SNMP4J mailing list > SNMP4J@agentpp.org > http://lists.agentpp.org/mailman/listinfo/snmp4j -- AGENT++ http://www.agentpp.com http://www.snmp4j.com http://www.mibexplorer.com http://www.mibdesigner.com _______________________________________________ SNMP4J mailing list SNMP4J@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j