OSI/AS Management Programming Manual

Sample Event-Message Filters
Sample Programs
C–20 056785 Tandem Computers Incorporated
Filter Example: Internal
and State-Machine Errors
The following filter selects all event messages that report internal and state-machine
errors originating from OSI/AS on system \MYSYS. These event messages should be
reported to your Tandem analyst.
== File: EXFLT4
==
== This EMS filter selects those event messages,
== originating from OSI/AS on system \MYSYS, that
== report internal and state-machine errors.
==
filter osias^intl^sm^msgs;
begin
--initialize subsystem IDs.
[#set zosi^val^ssid
[zspi^val^tandem].[zspi^ssn^zosi].[zosi^val^version] ]
if (zems^tkn^system = [#SYSTEMNUMBER \MYSYS] and
zspi^tkn^ssid = ssid(zosi^val^ssid ) and
(zems^tkn^eventnumber = [zosi^evt^intl^err] or
zems^tkn^eventnumber = [zosi^evt^sm^err])) then
pass;
end;
Command File to Compile
Filter Examples
Before installing a filter, you must compile it using the EMS filter compiler. Since
filters are based on TACL, compilation requires that you load in the TACL versions of
the definition files containing the definitions you use in your filter. You can use the
following TACL command file to load the definitions and compile the four example
filters. It produces filter object files named FLTR1, FLTR2, FLTR3, and FLTR4. The
source code file for this example is provided as part of the OSI/AS software. It resides
(by default) in $SYSTEM.ZOSIAS.EXEMF1.
comment File: EXEMF1
comment
fup purge oFILTER!
#push dummy
#load /keep 1, loaded dummy/ $system.zspidef.zspitacl
#load /keep 1, loaded dummy/ $system.zspidef.zcomtacl
#load /keep 1, loaded dummy/ $system.zspidef.zemstacl
#load /keep 1, loaded dummy/ $system.zspidef.zositacl
#load /keep 1, loaded dummy/ $system.zspidef.zos4tacl
#load /keep 1, loaded dummy/ $system.zspidef.zx25tacl
#load /keep 1, loaded dummy/ $system.zspidef.zlamtacl
#pop dummy
emf /in EXFLT1/ FLTR1
emf /in EXFLT2/ FLTR2
emf /in EXFLT3/ FLTR3
emf /in EXFLT4/ FLTR4
Once you have run this command file, you can use the event-retrieval example in the
next subsection to install the filter of your choice and retrieve selected event messages.