Designing and Managing Behavior Models
-
Alarm Actions - Send Trap -
The Send Trap alarm action enables you to send an SNMP v1 trap when a transition occurs and gives you virtually complete control over the contents of the trap.
Generally, when one alarm must communicate with another, the first uses the Fire Trigger action to fire a trigger that causes a transition in the second. However, Send Trap can also be used for this type of inter-alarm communication. The first alarm can send a trap to the NerveCenter server, the server can process the trap using a trap mask (which can fire a trigger), and the trigger can cause a transition in the second alarm. This is a more roundabout way of firing the required trigger, but gives you the ability pass the trap's variable bindings, along with the trigger, to the second alarm. In addition, Send Trap enables an alarm being managed by one NerveCenter server to communicate with an alarm being managed by another server, while Fire Trigger does not.
Of course, you aren't limited to sending traps to NerveCenter. You can send a trap to any application that knows how to process SNMP traps.
To add a Send Trap action to a transition:
New Action
button.A pop-up menu listing all alarm actions is displayed.
Send Trap
from the pop-up menu.The Send Trap Action dialog is displayed.
Source
field, enter information about node whose address you want to appear in the agent-address field of the trap PDU.The valid values for this field are:
Destination
field, enter information about the node to which the trap should be sent.The valid values for this field are the same as those for the Source field. $M is the default.
Port
field the number of the port on the destination machine to which the trap should be sent.Generally, SNMP traps are received on port 162, so 162 is the default value.
Community
field.This is the community name that a manager needs to know in order to access the agent that is sending the trap. The default value is public.
Trap Numbers
drop-down list: Default
, Trap
, and Custom
.If you select Default, your trap's generic trap number will be 6, and its specific trap number will be 1.
If you select Trap, your trap's generic and specific trap numbers will match those of the trap associated with the trigger that caused the alarm transition.
If you select Custom, you can specify a generic trap number using the Generic drop-down list. In addition, if you select a generic trap number of 6, you can enter a specific trap number in the Specific field.
Enterprise
field, enter an object identifier, or the corresponding name, for the device that is the source of the trap.The valid values for this field are:
Note that if the trigger that caused the transition with which this action is associated is not caused by a trap, $P will not have a value, and the Send Trap action will not take place.
For each variable binding, perform the following steps.
$P
from the Base Object
list and then select the Insert
buttonIf you perform step a, you can the skip the remaining steps in this procedure. Otherwise, go on to step b.
Base Object
list.
Attribute
list.
Instance
field.Using your base object, attribute, and instance, NerveCenter creates the object identifier portion of the variable binding. For example, if you supply the base object system, the attribute sysUpTime, and the instance 0, NerveCenter builds an OID of 1.3.6.1.2.1.1.3.0.
Attribute Value
field.
Insert
button.OK
button in the Send Trap Action dialog.
OK
button in the Transition Definition window.
Save
button in the Alarm Definition window.Perl Subroutine Example | Set Attribute |
29 July 2003 |