SNMP Configuration and Management Manual
Trap Multiplexer Subagent/Manager
SNMP Configuration and Management Manual—424777-006
12-49
Preparing the Application
Preparing the Application
Before you can run the application, the C source code and the EMS filter source code 
need to be compiled and the Trap Multiplexer needs to be sending trap events to an 
EMS collector process.
To compile the application source code, invoke the C compiler. In the following 
example, the source code is in a file named TMUXAPPC, and the program file name is 
TMUXAX; the search subvolumes identify where the compiler can locate include files 
used by the application:
c/in tmuxappc, out $s.#tmuxapp/tmuxax&
ssv0 $system.zspidef, ssv1 $system.system
When the source code is examined later in this section, you will notice that it specifies 
several compiler pragmas and includes several library files and DDL files for use 
during compilation.
To compile the filter source, invoke EMF after loading the DDL definitions used by the 
filter. In the following example, the filter source code is in a file named TMXF, and EMF 
compiles it into a file named TMXFO:
#PUSH dummy
#LOAD/KEEP 1, LOADED dummy/ $SYSTEM.ZSPIDEF.ZSPITACL
#LOAD/KEEP 1, LOADED dummy/ $SYSTEM.ZSPIDEF.ZEMSTACL
#LOAD/KEEP 2, LOADED dummy/ $SYSTEM.ZSPIDEF.ZTMXTACL
#POP dummy
EMF /IN TMXF/ TMXFO
Refer to Starting and Stopping the Trap Multiplexer on page 12-6 for instructions on 
starting the Trap Multiplexer.
Example 12-1. Sample Application Filter Source Code
filter tmxf;
begin
==[#set ztmx^val^ssid [zspi^val^tandem].
== [zspi^ssn^ztmx].
== [ztmx^val^version] ]
[#set ztmx^val^ssid TANDEM.185.D20 ]
if zspi^tkn^ssid = ssid(ztmx^val^ssid) then
 pass
else
 fail;
end;










