[SNMP4J] Question about User Localization (Agent side)

m k mkeller01 at hotmail.com
Tue Mar 12 02:53:20 CET 2013


Hello,

I have a confusion I'd like to clear up about localization. So, if I understand correctly, these should be the results when adding a user according
to different function signatures:

usm.addUser(user.getSecurityName(), usm.getLocalEngineID(), user);  <-- User is localized (password + engine + algorithm = key)

usm.addUser(user.getSecurityName(), null, user) <-- Not localized  ? (password + algorithm = key)

usm.addUser(user.getSecurityName(), user) <-- Not localized ? (password + algorithm = key)


....

However, I'm confused, because I have tried to add the user in all these ways, but I never have to change this command:

"snmpget -v 3 -u MYUSER -l authPriv -a SHA -A MYUSERAuthPassword -x DES -X MYUSERPrivPassword localhost:1161 .1.3.6.1.2.1.1.1.0"

The command ALWAYS works. I would think that I should need to change some parameter or something to indicate that I'm using a localized key or non-localized key, but I don't. 
Is there some logic going on behind the scenes on the manager side or SNMP4j side to make this work somehow? 


Thanks

 
 		 	   		  


More information about the SNMP4J mailing list