Hello all,
 
Is it possible to dynamically amend user details in an SNMP4J agent?
 
I have an Agent, overriding BaseAgent, which currently defines a single
SNMP user:
 
protected void addUsmUser(USM usm) {
   UsmUser user = new UsmUser
      new OctetString(username),
      AuthMD5.ID,
      new OctetString(password),
      null,
      null);
   usm.addUser(user.getSecurityName(), user);
}
 
I can use this user quite happily to get/set values in my MIB tree.
 
But, it is possible to dynamically change the user's password?  I've
tried using the snmpusm command line tool (from the net-snmp library) as
follows:
 
snmpusm -v3 -lauthNoPriv -xDES -aMD5 -A<password> -u<username>
192.168.10.10:16001 -Ca passwd <password> <newpassword> <username>
 
But this fails with:
Error in packet.
Reason: commitFailed
Failed object:
SNMP-USER-BASED-SM-MIB::usmUserAuthKeyChange."...p....*"."<username>"
 
Could I reasonably have expected this to work?
 
Assuming that I can get this to work - does SNMP4J provide any direct
support for obtaining the user details from a file?  (So that I can
remove the code which creates the user each time the agent starts).
 
Thanks in advance for any help!
 
 
Alistair.


Please help Logica to respect the environment by not printing this email  /  
Merci d'aider Logica à préserver l'environnement en évitant d'imprimer ce mail 
/  Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei 
die Umwelt zu schuetzen  /  Por favor ajude a Logica a respeitar o ambiente não 
imprimindo este correio electrónico.



This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.

_______________________________________________
SNMP4J mailing list
[email protected]
http://lists.agentpp.org/mailman/listinfo/snmp4j

Reply via email to