The Calc’d Values tab of the ECI Setup dialog box defines calculated value instructions. The calculated values feature allows the user configuring Smarts NOTIF to write simple scripts that use information from the event (or notification) being processed to calculate values for use in the Smarts 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 listed in the values tab, literal values are enclosed with quotation marks (for example: “0”) and variables are not (for example: V3).
Calculated values comprises of a condition (value) (conditional) (value) and assignment (attribute) (value). Substitution values are allowed in any value field or select Help > Substitutions in the Smarts 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
== 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.