The Calc’d Values tab of the ECI Setup dialog box shown in Calc’d Values tab of the ECI Setup dialog box defines calculated value instructions. The calculated values feature allows the user configuring NOTIF to write simple scripts that use information from the event (or notification) being processed to calculate values for use in the NOTIF processor. For example, a user could write a calculated value script that decides to discard an event when the value of SNMP trap varbind 3 (V3) is 0. Note that in the calculated values list in Calc’d Values tab of the ECI Setup dialog box, literal values are enclosed with quotation marks (for example: “0”) and variables are not (for example: V3).

Figure 1. Calc’d Values tab of the ECI Setup dialog box

Calculated values comprises of a condition (value) (conditional) (value) and assignment (attribute) (value). Substitution values are allowed in any value field as shown in the figure or select Help > Substitutions in the NOTIF Editor.

Allowed conditionals include:

==, !=, < , <=, >, >=, contains, (left string contains right string), does not contain, (left string does not contain right string), starts with, ends with

Note:

 == means equal, and != means not equal.

Legal assignment attributes include:

  • ASLEnabled

  • Category

  • ClassName

  • ClearOnAcknowledge

  • DiscardTrap

  • ElementClassName

  • ElementName

  • EventName

  • EventText

  • EventType

  • Expiration

  • InMaintenance

  • InstanceName

  • JavaEnabled

  • Severity

  • State

  • UpdateUserDefinedFields

  • UserDefined1 - 20

    Examples of calculated values are the following:

  • if V1 equals “1”, set Severity to “1”.

  • if contains (SYS, “Demo”), set EventText to “Ignore events against”+SYS.