Receiving SNMP Traps
The
SNMP
plug-in can receive SNMP traps by running a workflow, which waits for a single trap message, or with a policy, which can handle traps continuously. The plug-in supports SNMPv1 and SNMPv2c traps.Wait for a Trap on an
SNMP Device
You can run a
workflow that waits to receive an SNMP trap from a specified device.
- Verify that you are logged in to theAutomation OrchestratorClient as an administrator.
- Verify that you have a connection to an SNMP device from theInventoryview.
This workflow features a
trigger, which stops the run of the workflow and waits for an SNMP trap before
continuing. When a trap is received, the workflow run resumes. You can use the
workflow as part of more complex workflows, or as a sample that you can
customize or extend for a specific need.
- Navigate toand enter thesnmptag in the workflow search box.
- Locate theWait for a trap on an SNMP deviceworkflow and clickRun.
- Select the device on which you want to wait for an SNMP trap.
- In theOIDtext box, enter the object identifier of a specific trap.If you leave the text box empty, the workflow run resumes after receiving any trap from the specified SNMP device.
- ClickRun.
Set an SNMP Trap
Policy
You can set a
policy to continuously listen for traps from an SNMP device that is already
registered in the plug-in inventory.
- Verify that you are logged in to theAutomation OrchestratorClient as an administrator.
- Verify that you have a connection to an SNMP device from theInventoryview.
- In theAutomation OrchestratorClient, navigate to .
- Open theSNMP Trap policytemplate and clickRun.
- Enter a name for the policy that you want to create.
- Enter a description for the policy.
- Select an SNMP device for which to set the policy.
- ClickRunto create the policy.TheAutomation OrchestratorClient switches toRunperspective.
- On thePoliciesview, right-click the policy that you created and selectStart policy.
The trap policy starts
to listen for SNMP traps.
You can edit the SNMP Trap
policy.
Configure an SNMP Trap
Host Policy
With the SNMP Trap
Host policy listens for SNMP traps from hosts that might not be added as
registered SNMP devices.
- Verify that you are logged in to theAutomation OrchestratorClient as an administrator.
- Verify that you have a connection to an SNMP device from theInventoryview.
- In theAutomation OrchestratorClient, navigate to .
- Open theSNMP Trap Hostpolicy template and clickRun.
- Enter a name for the policy that you want to create.
- Enter a description for the policy.
- SelectTrap Host (Online)from the inventory tree.
- ClickRunto create the policy.The Orchestrator client switches toRunperspective.
- Right-click the policy and selectEdit.
- In theScriptingtab, expand .
- Select a workflow or a script to associate with the policy.
- ClickSave and closeto apply the edited settings.
- On thePoliciesview, right-click the policy that you edited and selectStart policy.
You can edit the SNMP Trap
Host policy.
Edit a Trap
Policy
You can edit a trap policy to customize
it for a specific use case. When you edit a trap policy, you can change its priority and
startup settings, and customize the scripting and permissions associated with the policy.
- Verify that you are logged in to theAutomation OrchestratorClient as an administrator.
- Verify that you have a connection to an SNMP device from theInventoryview.
- In theAutomation OrchestratorClient, navigate to .
- If the policy that you want to edit is running, right-click the policy and selectStop policy.
- Right-click the policy and selectEdit.
- From theGeneraltab, edit the startup settings, priority, and description of the policy.
- From theScriptingtab, you can associate a specific workflow or scripting code with the policy, for integration in a more complex scenario.You can set the policy to trigger a custom workflow when a trap is received.
- From thePermissionstab, you can modify the access rights.You can give permissions to a user or to a group to start the policy, without giving permissions to edit the policy.
- ClickSave and closeto apply the edited settings.
- On thePoliciesview, right-click the policy that you edited and selectStart policy.