context in notificationoriginator::generate
Frank Fock
frank.fock____marconicomms.com
Tue May 23 13:52:43 CEST 2000
javalist wrote:
>
> Hello Agent++ Users:
>
> what is the use of the last param contextname in this method
Oh, you discovered a bug! The last parameter is used to determine
the context in which a trap is generated. Unfortunately, the context
of the generated SNMPv3 trap is not actually set (always ""). By now,
the contextName parameter is only used to check access rights of the
variable bindings in the trap's payload.
For SNMPv1/v2c the contextName should determine the trap community
through the SNMP-COMMUNITY-MIB. This needs to be fixed too. Currently,
the securityName in the snmpTargetAddrTable is used directly as
community name, which is not correct. Instead, the securityName should
be used in the SNMP-COMMUNITY-MIB to lookup the appropriate community.
Best regards,
Frank
--
Frank Fock Marconi Communications Software Systems
<frank.fock at marconicomms.com> Blumenstrasse 22-24,
Phone: +49 7191 13-4851 71522 Backnang,
Fax: +49 7191 13-2502 Germany
More information about the AGENTPP
mailing list