[SNMP4J] Send SnmpV3 PDU to multiple agents
Frank Fock
fock at agentpp.com
Wed Jul 9 00:32:37 CEST 2008
Hi,
Tayyab Akram wrote:
>
> Now if I want to send PDU to different targets can I use the same objSnmp
> (Instance of Snmp class) to send PDU to different agents??
>
Yes, of course. That's recommended.
> Also I have to add the USM security to the objSnmp (instance of Snmp) to
> authenticate Snmp V3 pdu and I am doing it using,
>
> snmp.getUSM().addUser("SecurityName", usmUser);
>
> But my different agents have differnt different security parameters.... If I
> use the Snmp object... How can I use different User for different agents..
Use the above call to those different users.
If a security name uses different passphrases on different
agents, then you will have to use localized (to the
target engine ID) passphrases.
>
> Also please guide me if I have to use different Snmp class instances for
> different agents then.... Can I listen to their response at one place or I
> have to start the listener for each agent??
You could use a single listener instance, but
that approach is not recommended (too much overhead).
Best regards,
Frank
More information about the SNMP4J
mailing list