gettrc Command
Purpose
Manages the collection of trace files.
Syntax
gettrc [ -c ] [ -C dirname ] [ -m ] [ -M dirname ] [ -s ] [ -S filename ]
Description
The gettrc command is a script that is used in conjunction with the snap command. It manages the collection of system trace files, lightweight memory trace (LMT) files, and component trace (CT) files.
Flags
Flag | Description |
---|---|
-c | Collects component trace files. |
-C dirname | Collects component trace files from the directory that are specified by dirname. |
-m | Collects memory trace files. |
-M dirname | Collects lightweight memory trace files from the directory that are specified by dirname |
-s | Collects system trace files. |
-S filename | Collects system trace files from the directory specified by filename |
Exit Status
Item | Description |
---|---|
0 | The command completed successfully. |
>0 | An error occurred. |
Examples
- To use gettrc in conjunction with the snap command
to retrieve the different kinds of trace files, enter:
This command returns system trace files, LMT files, and CT files, including those files that are listed in the directory specified by dirname.snap "gettrc -c -C dirname -m -M dirname -s -S filename"
Location
/usr/lib/ras/snapscripts/gettrc
Files
/usr/lib/ras/cpufmt
/etc/trcfmt