[SNMP4J] Agent setup for V3 "set/get" requests and "inform" notifications

Frank Fock fock at agentpp.com
Fri Apr 27 22:21:58 CEST 2007


Hi Mark,

In order to use the same user for GET/SET from manager to agent and
INFORM requests from agent to manager with SNMP4J-Agent as
agent and MIB Explorer as manager, follow these steps:

(1) Add the user on the agent side without specifying an engine ID:
usm.addUser(user.getSecurityName(), null, user);
(2) Add the same user in MIB Explorer and check the "Principal"
flag to allow incoming SNMPv3 request (like INFORMs) on behalf
of that user.
(3) Add a SNMPv3 target with that user to MIB Explorer's config
and select the previously added user for it. After you have specified
the agent's address and port, execute "Discover Engine ID" from the
context menu to assign the agent's engine ID to that target.

I guess you missed step (3) and that caused MIB Explorer to look
into its own local cache of engine IDs and finds (only) its own engine ID
associated with the user because of a previously received INFORM
request from the agent.

Hope this helps.

Best regards,
Frank

Mark Gorokhov wrote:
> I'm setting up a V3 agent for "set/get" requests and "inform"
> notifications for the same user.
> 
> Setting up an USM User by calling
>    usm.addUser(
>       user.getSecurityName(), 
>       usm.getLocalEngineID(), 
>       user);
> works for "set/get" requests but fails for "inform" notifications.
> 
> Setting up an USM User by calling
>    usm.addUser(
>       user.getSecurityName(), 
>       null, 
>       user);
> works for "inform" notifications but fails for "set/get" requests.
> 
> Attempt to add the same user twice with usm.getLocalEngineID() and
> "null" returns error -1406 for get-request: invalid engine ID
> 
> How to overcome this conflict? Could be the same user object reused for
> V3 "set/get" requests and "inform" notifications?
> 
> Thanks,
> Mark G.
> 
> 
> 
> _______________________________________________
> 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