Listing trace spooling status
To display the trace spooling status of a resource manager's trace files, use the lssrc -ls resource_manager command.
For example, to display the trace spooling status of the
configuration resource manager's trace files, run this command:
lssrc -ls IBM.ConfigRM
The following output is displayed:
(other resource manager information)
.
.
.
/var/ct/IW/log/mc/IBM.ConfigRM/trace.1.sp (7 pages) ->
/admin/bubbly/Spool.ConfigRM/IW/25384144/c206bc1b07/f224ca38a699a2c/IBM.ConfigRMd
/var/ct/IW/log/mc/IBM.ConfigRM/trace.detail -> spooling not enabled
/var/ct/IW/log/mc/IBM.ConfigRM/trace.summary.1.sp (5 pages) -> /dev/null
The sample output shows that trace spooling is: - enabled and on for the resource manager's /var/ct/IW/log/mc/IBM.ConfigRM/trace trace file, and is being spooled to the /admin/bubbly/Spool.ConfigRM/IW/25384144/c206bc1b07/f224ca38a699a2c/IBM.ConfigRMd directory.
- not enabled for the resource manager's /var/ct/IW/log/mc/IBM.ConfigRM/trace.detail trace file.
- enabled and off for the resource manager's /var/ct/IW/log/mc/IBM.ConfigRM/trace.summary trace file.
Examples
- In this example, trace files produced by rmcd (those in /var/ct/.*/log/mc/)
are each grouped into nine file sets, with trace records added globally,
in a circular fashion:
As each file is completed, it is renamed (a time stamp is appended) and copied to /data/trc/cluster_name/cluster_ID/host_name/node_ID/rmcd.$ export CT_TR_SPOOL=\ "/var/ct/.*/log/mc/.*:ON:9:/data/trc" - This example contains a second directory pattern
in the environment variable, /var/ct/.*/log/mc/IBM.StorageRM/.*,
which instructs the trace library to create a nine-file spool group
from the storage resource manager's trace files and to store the files
under /data/trc:
$ export CT_TR_SPOOL=\ "/var/ct/.*/log/mc/IBM.StorageRM/.*:ON:9/data/trc,\ /var/ct/.*/log/mc/.*:ON:9:/data/trc" - To configure trace spooling for the RMC (Resource Monitoring and Control) daemon
that has a trace size of 2 MB, run the following
command:
cttracecfg -T -a -n RMCD -p "/var/ct/.*/log/mc/.*" -d "/data/trc" -s 2097152 -o on - To delete the trace files from the trace spool area
/data/trc if the spool area exceeds a size of 50 MB, run the following
command:
cttracecfg -S -a -n spoolarea_data -d "/data/trc" -i 12 -c 50 -o on