27.12.2012 Views

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

TRSOURCE<br />

Examples<br />

5. Use of the DROP keyword directed toward a trace set removes any record of<br />

all the trace IDs in the set. To remove or ungroup a member of a set, either<br />

assign the trace ID to another, possibly unused, trace set name or assign the<br />

trace ID to a trace set name of NULL.<br />

6. The destination of trace data can be altered with the TRSAVE comm<strong>and</strong> while<br />

the trace is disabled. See “TRSAVE” on page 1665 for details.<br />

7. Enabling a trace for which TRSAVE has not been issued invokes the TRSAVE<br />

destination defaults.<br />

8. If an error message is generated for a trace definition, enter query trsource<br />

id traceid to verify that the trace definition is correct.<br />

9. Data traced from this comm<strong>and</strong> is stored as a system data file (SDF),<br />

specifically a trace file (TRF), as opposed to a printer or reader file. Use the<br />

TRACERED utility to merge <strong>and</strong> format the files. TRACERED can send the<br />

output to your virtual printer, to a CMS file, or to an OS QSAM file. For more<br />

information, see “TRACERED” on page 1873.<br />

10. If an external security manager is installed on your system, you may not be<br />

authorized to issue this comm<strong>and</strong>. For additional information, contact your<br />

security administrator.<br />

The following examples provide an overview of the ways TRSOURCE can be used.<br />

For further examples, see z/<strong>VM</strong>: Diagnosis Guide.<br />

1. This example defines <strong>and</strong> enables a trace ID of type DATA. The trace ID is<br />

DSPLOOP, it is defined at address 4B248, <strong>and</strong> the data link string specified is<br />

G4+8%.2. 'label' is a label that is included with the datalink data in the trace<br />

record to identify that datalink’s data. The destination is specified as a system<br />

trace file for the issuer with a maximum size of 2000.<br />

trsource id dsploop type data loc 4b248 5820c846<br />

trsource id dsploop dl g4+8%.2=label<br />

trsave id dsploop dasd to * size 2000<br />

trsource enable id dsploop<br />

2. This example defines, enables, <strong>and</strong> disables two trace IDs of type IO. These<br />

trace IDs, IO1 <strong>and</strong> IO2, are put into trace set IOSET. IO1 traces I/O to devices<br />

in the range C41-C47; up to 200 bytes of transferred data is traced. IO2 traces<br />

I/O for USER1 to devices in the range A81-A87; up to 400 bytes of transferred<br />

data is traced. The destination options default (because TRSAVE was not<br />

issued) <strong>and</strong> the trace files are named IO1 <strong>and</strong> IO2 with a maximum size of 256<br />

pages <strong>and</strong> a maximum number of 2.<br />

trsource id io1 set ioset type io<br />

dev c41-c47 iodata 200<br />

trsource id io2 set ioset type io<br />

dev a81-a87 iodata 400 user user1<br />

trsource enable set ioset<br />

trsource disable id io1<br />

trsource disable id io2<br />

1674 z/<strong>VM</strong>: <strong>CP</strong> <strong>Comm<strong>and</strong>s</strong> <strong>and</strong> <strong>Utilities</strong> <strong>Reference</strong><br />

3. This example defines, enables, <strong>and</strong> drops two trace IDs of type GT. These trace<br />

IDs, GT1 <strong>and</strong> GT2, are put into trace set GTSET. The destinations are specified<br />

as system trace files for user ID USER3 with a default size of 256 pages.<br />

trsource id gt1 set gtset type gt for user user2<br />

trsource id gt2 set gtset type gt for vmgroup gcsgroup<br />

trsave id gt1 dasd to user3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!