Expand Management Programming Manual

EVENT MANAGEMENT
Examples of Filters
EXAMPLES OF FILTERS
The following two examples illustrate simple filters that could
be created to select EXPAND event messages.
For both examples, the following assumptions have been made:
1. All EXPAND definitions used in the filters have been loaded
into TACL before compilation.
2. Tokens and subsystems that you have created have been defined
and loaded before compilation.
3. All subsystem IDs that are not initialized in the filter have
been initialized by other means.
For more information on filters, refer to the
Event Management
Service (EMS) Manual
.
Example 1
The following filter selects all of the EXPAND event messages.
-- Filter that selects only event messages issued by the
-- EXPAND subsystem.
[#SET zexp^val^ssid
[zspi^val^tandem].[zspi^ssn^zexp].[zexp^val^version]]
FILTER expand^messages;
BEGIN
IF zspi^tkn^ssid = SSID(zexp^val^ssid) THEN
PASS -- Return this event message
ELSE
FAIL; -- Do not return this event message
END; -- of expand^messages
8-90