Sending SNMP v3 traps

Frank Fock Frank.Fock____t-online.de
Fri Jul 14 10:12:17 CEST 2000


helge.fredriksen____4tel.no wrote:

> Hello!
>
> I've just started to look into the trap mechanisms in agent++.
> I found the following sample code in agent.cpp under the atm example.
>
>         coldStartOid coldOid;
>         NotificationOriginator no;
>         UdpAddress dest("127.0.0.1/162");
>         no.add_v1_trap_destination(dest);
>         no.generate(vbs, 0, coldOid, "", "");
>
> This is really nice.
>
> But I understand from the documentation that this is a v1 trap? Is there any
> similar support for v3 traps?
>
> Yours sincerely,
> Helge Fredriksen

Yes, whether a v1,v2c, or v3 notification is sent depends on the
settings of the corresponding snmpTargetParamsMPModel
object in the SNMP-TARGET-MIB.

Best regards,
Frank




More information about the AGENTPP mailing list