To display event log data that is collected in the trace data sets during a specified time period, use the LOGPRT command.
Type
General command
This command has the following format:
LOGPRT DSN(dsname[,dsname]...)
[FROM(schedule)]
Indicates the names of the trace data sets to access for event log information. Separate data set names with a comma.
Indicates schedule criteria. The keyword UNTIL can be used to restrict the time range. If UNTIL is not used, the current time is used as the end time.
This command is not normally used, as the same information is stored in z/OS Agent audit log. Immediately before using the LOGPRT command, issue the TRACE WRITE, TRACE CLOSE, and TRACE OPEN operator commands to ensure that the LOGPRT command accesses all current trace data. Trace data set information is displayed via the TRACE STATUS operator command.
Related information
For information on printing a trace data set, see the TRACEPRT command.
Example: Display time range
This example shows how to display information that is logged between 6pm the previous day and 5am this morning in data set CYB.ZAG.TRACE1.
LOGPRT DSN('CYB.ZAG.TRACE1') FROM('6PM YESTERDAY -
UNTIL 5AM TODAY')
The LOGTRACE command consolidates certain trace data into a single sysout data set. Currently, LOGTRACE consolidates trace data produced by the following commands or initialization parameters:
Type
OPER command
Authority
To issue the LOGTRACE command, you require OPER authority.
This command has the following format:
LOGTRACE SET|T SYSOUT(class)
LOGTRACE {START|S}
{STOP|P}
{RESTART|RES|RS|SPIN|SP}
{DISPLAY|D}
{HELP|?}
Set the sysout class for trace data to class.
Start consolidating trace data.
Stop consolidating trace data.
Stop and restart consolidating trace data.
Display the current LOGTRACE status.
Display LOGTRACE command options.
Set Up Trace Data Consolidation
Set the sysout class for the trace data, before you start the trace data consolidation. For example,
LOGTRACE SET SYSOUT(A)
To include data from a particular trace in the LOGTRACE consolidation, specify the LOGTRACE operand in the command that sets up that trace. For example, to include VSAM I/O event trace data in the consolidation, you issue the following command:
XDAB SET TRACE LOGTRACE
Start Trace Data Consolidation
Data for a trace is not generated and is not consolidated with data from other traces until you do the following tasks:
For example,
LOGTRACE START XDAB START TRACE
Alternatives to the LOGTRACE Command
Instead of issuing the LOGTRACE command, you can:
Related Information
See the LOGTRACE initialization parameter in the Initialization and Configuration Guide.
Example: Set the Trace Data SYSOUT Class
This example shows how to set the sysout class for trace data to A.
LOGTRACE SET SYSOUT(A)
Example: Start Consolidating Trace Data
This example shows how to start consolidating trace data to the sysout data set.
LOGTRACE START
Example: Stop Consolidating Trace Data
This example shows how to stop consolidating trace data to the sysout data set.
LOGTRACE P
Example: Restart Consolidating Trace Data
This example shows how to restart consolidating trace data to the sysout data set.
LOGTRACE RES
|
Copyright © 2013 CA.
All rights reserved.
|
|