[AGENT++] USM::add_usm_user() ?

Jochen Katz katz at agentpp.com
Mon Apr 18 23:18:12 CEST 2005


Hi,

> I can have only one v3MP instance.

this is a true limitation of snmp++, but when I created the v3MP class,
  I didn't want to pass v3MP pointers to all classes that need access to
it. I'll see, what I can do...

> I can add a user via USM::add_usm_user() which is allowed to access my
> agent.
> I want to add a user which is needed by my manager to access a remote agent.
> 
> If this user has the same security_name as the user needed by my agent it
> will be overwritten !

If you know the engine_id of the remote agent you can use
USM::add_localized_user() to add the user.

As there is no problem, if the users have the same passwords, I asume
that you want to have user X with password xxx for the manager part and
user X with password zzz for the agent part of your application.

If your agent does not send traps or after it has sent traps to all
possible managers, you can safely add the manager part user to the USM.

Regards,
  Jochen




More information about the AGENTPP mailing list