You have written opposite requirements in your Topic heading and in the content. Send SNMP in heading and then receive SNMP in the content. What is the actual requirement? WFA can send SNMP traps on workflow execution events like workflow execution started, Waiting for Approval, Execution failed, execution completed.
If you want your workflow to send SNMP traps as a part of command execution, you can create a PoSH/Perl command to generate this trap and send it.
If you want your workflow to execute based on a SNMP trap received, you can create a command of type: wait for condition which will wait in execution stage till the configured SNMP trap is received or the time-out occures.
I can give you a code, but first please clarify your requirement.
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
This is one of the more tricky requirements I've dealt with. I believe you'll have a WFA command which will send SNMP traps on certain conditions if occure. The code to send SNMP trap is given here. Rest you should figure out yourself. Had a lot of headache to get this working.
You need the following:
1. You need an SNMP Assembly DLL for .NET. You can get it from http://sharpsnmplib.codeplex.com/releases . Extract it in some location. It has many files bundled as a complete package, but for SNMP you only need SharpSnmpLib.dll . Thre are others options too, but I'm not looking to list them all.
2. You need Powershell 3.0. for my code to work. WFA is supported on Powershell 3.0 and I suggest you get it if you haven't. Win 2012 onwadrs have it by default. Posh3.0 beats 2.0 just in terms of sheer strenght of what it can do. Upgrade if you havn't.