TCP/IP TELNET Management Programming Manual
Examples of Filters
Event Management
7–20 53474 Tandem Computers Incorporated
Examples of Filters The following two examples illustrate simple filters that could be created to select
TELNET event messages.
For both examples, the following assumptions have been made:
All TELNET definitions used in the filters have been loaded into TACL before
compilation.
Tokens and subsystems you have created have been defined and loaded before
compilation.
All subsystem IDs not initialized in the filter have been initialized by some other
means.
For more information on filters, refer to the Event Management Service (EMS) Manual.
Example 1 The following filter selects all of the TELNET event messages.
— Filter that selects only event messages issued by
— the TELNET subsystem.
[#SET ztnt^val^ssid
 [zspi^val^tandem].[zspi^ssn^ztnt].[ztnt^val^version]]
FILTER telnet^messages
BEGIN
 IF zspi^tkn^ssid = SSID(ztnt^val^ssid) THEN
 PASS —Return this event message
 ELSE
 FAIL; —Do not return this event message
END; — of telnet^messages










