EMS Manual
Example of Reporting Events
EMS Manual—426909-005
B-2
Testing the Program
4. Run the C test program, COBJ, entering input with pauses greater than 10
seconds and greater than 30 seconds between lines. Terminate the program by
entering "quit". See below:
$NSKOS KMZEMSEX 31> cobj
1stMessage
2ndMessage
3rdMessage
quit
$NSKOS KMZEMSEX 32>
5. Execute the following TACL statement. Adding the DEFINE, _EMS_TEMPLATES,
effectively "installs" in your TACL session the TEMPNR template you created in the
TEMPLI step above.
add define =_ems_templates, class map, file tempnr
6. Execute the EMS Distributor to display the EMS logfile that was created by the
Alternate Collector the COBJ program launched. The last three events displayed
are the ones generated by the COBJ program.
$NSKOS KMZEMSEX 36> emsdist ty p,lo zzev0000,te [#myterm]
12-09-27 18:46:26 \BLPROD.$ACOL *TANDEM.EMS.H01 000514 EMS:
COLLECTOR \BLPROD.$ACOL SWITCHED LOG FILES
FROM FILE TO
\BLPROD.$NSKOS.KMZEMSEX.ZZEV0000 BY
OPERATOR
12-09-27 18:46:26 \BLPROD.$ACOL TANDEM.EMS.H01 000522 EMS:
ALTERNATE COLLECTOR \BLPROD.$ACOL, DISK
12-09-27 18:46:50 \BLPROD.1,893 OURCO.OURSUBSS.3 000001 More than 10
seconds since the last input.
File: $RECEIVE
Last Message: 1stMessage
Time since last message (in usec):
11788900
12-09-27 18:47:03 \BLPROD.1,893 OURCO.OURSUBSS.3 000001 More than 10
seconds since the last input.
File: $RECEIVE
Last Message: 2ndMessage
Time since last message (in usec):
12752049
12-09-27 18:47:35 \BLPROD.1,893 *OURCO.OURSUBSS.3 000001 More than 30
seconds since the last input.
File: $RECEIVE
Last Message: 3rdMessage
Time since last message (in usec):
32384456
$NSKOS KMZEMSEX 37>