[SNMP4J] SnmpV3 configuration
Idan Shai (ishai)
ishai at cisco.com
Tue Jun 15 22:46:59 CEST 2010
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
More information about the SNMP4J
mailing list