A Summary of Commands

trace

If the tracelog option is specified, all trace messages are logged to the trace log file and sent to stdout. If startlog is specified, tracing is done to the trace log but no trace output is sent to stdout. The trace log file can be queried for data deposited from prior executions of the trace command by using the display command with the tracelog option.

Trace messages can be printed with or without the date and time when they are generated. If date is specified, the date and time are printed with each trace message. The date and time are always printed for messages in the trace log file.

If the sleep argument is specified, trace will sleep sleeptime milliseconds between reading the trace buffer. The default is 200 milliseconds.

The trace stop command clears any active trace settings, ensuring that no trace output is generated to the trace log.

By default, all trace messages are saved in a trace shared memory buffer. The trace buffer is a circular buffer. If trace messages are written to the trace buffer faster than the trace command can read them, eventually the trace buffer overflows and trace messages are lost. When this happens, trace prints the following message, where XXX is the number of trace messages lost:

TRACE: ***** LOST XXX RECORDS

Two ways to minimize the number of trace messages lost:

UCS 1000 R4.2 Administration 585-313-507

Issue 3 April 2000 608