support for snmp++
Jochen Katz
katz____agentpp.com
Tue Feb 19 23:25:50 CET 2002
Hi,
> Well, I've been trying to figure out how to get the trap community
> string that's sent in a v1/v2 trap. I've looked at the source code but
> don't see any methods that return what I'm looking for.
with the Pdu you get a SnmpTarget pointer that points to a CTarget
object for SNMPv1/2c and UTarget for SNMPv3. You can use
CTarget::get_readcommunity() to get the community.
Kind regards,
Jochen
More information about the AGENTPP
mailing list