EMS Manual
Retrieving Event Messages Interactively
EMS Manual—426909-005
3-2
Displaying Current Event Messages
Displaying Current Event Messages
Assuming the log files are secured so that you can access them, it is easy to run a
printing distributor. The simplest case is to run a printing distributor to your terminal by
entering this TACL command:
EMSDIST/NAME $dist/TYPE PRINTING, COLLECTOR $0, TEXTOUT $TERM1
This example runs a printing distributor and sends the output to a terminal called
$term1. If you try this example, substitute the name of your terminal. In this example,
the source of event messages is the collector $0. (The primary collector on your local
system.) The filter is the default filter, because none is specified. The default filter (for
the printing distributor) passes all event messages. The distributor displays messages
for all events reported from when you start the distributor until you stop it.
You can use similar commands to run printing distributors to other terminals or printers
by substituting other names for $term1.
To stop the distributor, press the BREAK key on your terminal. Then, assuming the
distributor is the process you most recently started, use the TACL STOP command to
terminate it. The EMSDIST command examples in this section use the NAME RUN
parameter (/NAME $dist/), which assigns a name to the distributor process and lets
you subsequently STOP the process by name. You must provide a distributor process
name in the EMDIST command.
Displaying Saved Event Messages
You can run a printing distributor to display event messages saved in a previously
created log file. The TACL command is much the same as the previous example,
except the LOGFILE parameter replaces the COLLECTOR parameter, and a TIME
parameter is added to specify the generation time of the earliest message you want to
display:
EMSDIST/NAME $dist/TYPE PRINTING, LOGFILE log1, TEXTOUT $TERM1,
TIME 15 jul 1999 7:30
This example runs a printing distributor to $TERM1 to process event messages stored
in the previously generated log file (named log1) and generated since 7:30 a.m. on
July 15, 1999. Because this example does not specify a filter, the distributor uses the
default filter, which passes all events.
You can stop the distributor at any time by pressing the BREAK key and using the
TACL STOP command. Or you can let the distributor run until it reaches the end of the
log file.