Formatting a report on a different system
It is often desirable to run the trcrpt command on another system than the system where the trace is collected.
There may be various reasons for this, such as:
- The system being traced might not be available for you to run the trcrpt command, and the trace might be collected by the system administrator or someone at the remote site.
- The system being traced is too busy for you to run the trcrpt command.
- The system being traced does not have enough file system space left to accommodate a very large trcrpt file.
You can run the trace command on a system and
run the trcrpt command on that trace file on a different
system. In order for this to work correctly, the output of the trcnm command
is needed from the system where the trace was run. Run the trcnm command
and redirect the output into a file, as follows:
# trcnm > trace.nm
If you want to use the trace file for other performance tools such as tprof, pprof, netpmon, and filemon, run the gennames Gennames_File command.
That
file is then used with the -n flag of the trcrpt command,
as follows:
# trcrpt -n trace.nm -o newfile
If -n is not specified, then the trcrpt command generates a symbol table from the system on which the trcrpt command is run.
Additionally,
a copy of the /etc/trcfmt file from the system being
traced might be beneficial because that system may have different or more
trace format stanzas than the system where the trcrpt command
is being run. The trcrpt command can use the -t flag
to specify the trace format file (by default it uses the /etc/trcfmt file
from the system where the trcrpt command is being run).
For example:
# trcrpt -n trace.nm -t trcfmt_file -o newfile