Designing and Managing Behavior Models
 -
Using Trap Masks - Defining a Trap Mask - 
This section outlines the procedure for creating a trap mask.
From the client's 
Admin menu, choose Mask List.
NerveCenter displays the Mask List window.
New button.The Mask Definition window appears.
Name text field, type a unique name for the trap mask.Generic list box, select a generic trap type.Before a trap mask can fire a trigger, the value of this field must match the value of a trap's Generic trap field, which may contain any of the enumeration constants shown in Generic Trap Values:
If you select EntSpecific = 6 (an enterprise specific trap), the Specific text field is enabled, and you must enter a vendor-specific trap number in that field.
If you select AllTraps = -1, the mask will disregard the contents of each trap's Generic trap field when looking for traps of interest. That is, any generic trap type in the trap meets the trap mask's requirement.
Filter on Enterprise scope checkbox. 
Controls in the Enterprise group box become enabled.
From -- specify that the trap's Enterprise field must contain an OID that either matches the OID in your mask's Enterprise field, or is subordinate to it.
 
From Only -- indicate that the trap's enterprise must match the mask's enterprise exactly.
v2C/v3 radio button. 
Specific text field. 
Before the mask can fire a trigger, the number you enter in the Specific field must match the 
value of a trap's Specific trap field.
You can select one of the OID values, choose All Traps, or type the value for a particular enterprise trap OID. SNMP v3 trap OID values map to generic traps as shown in SNMP v3 trap OID/Generic Value Mappings.
SNMP v3 trap OID/Generic Value Mappings
| Trap | Generic Value | SnmpTrapOID.0 | 
|---|---|---|
Trigger Type radio buttons:Simple Trigger -- if the values in your mask's Generic, Enterprise, and Specific fields are sufficient to define the trap you are looking for.
 
Trigger Function -- if you need to specify additional information: for example, the values of variable bindings.
 
If you select the Simple Trigger radio button, the Simple Trigger combo box is enabled.
Simple Trigger -- enter a trigger name in the Simple Trigger field. You can either type in the name of a new trigger or choose a trigger from the list of existing triggers.
 
Trigger Function -- select the Trigger function tab, and enter a trigger function on the Trigger Function page.
This trigger function is a Perl subroutine that you can use to check the values of variable bindings or examine other pertinent information and to fire appropriate triggers. For complete information on writing trigger functions, see the section Writing a Trigger Function.
Save button at the bottom of the Mask Definition window to save your mask.| Listing Trap Masks | Writing a Trigger Function | 
| 29 July 2003 |