> i need to write an application that sends v2c snmp traps. From the
> documentation it is not very clear whether this is supported by the
> Synapse library. I tried it by changing the SendTrap function. I
> changed this line: SNMPSend.Query.Version := SNMP_V1; into this:
> SNMPSend.Query.Version := SNMP_V2C;

SendTrap is for SNMPv1 only, because SNMPv2 change way how traps are  
encoded!

So, you must change:

- Version, of course.
- PDUtype to PDUTrapV2
- forget all OldTrap* properties! All have some specific OID and you 
must add it inside MIBlist.



-- 
Lukas Gebauer.

http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.
http://geoget.ararat.cz/ - Geocaching solution


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to