The topasrec command generates binary recording of local system metrics, CEC (Cross Electronics Circuit) metrics, and Cluster metrics.
Local binary recording:
topasrec -L [ -c sample_count ] [ -o < output_filename >] [ -s seconds ] [ -t trace level ]
Local Azizo recording:
topasrec -L -O type=azizo
CEC recording:
topasrec -C [ -c sample_count ] [ -o < output_filename > ] [ -s seconds ] [ -O xmtopas=<hostname> ]
Cluster recording:
topasrec -G [ -c sample_count ] [ -o < output_filename > ] [ -s seconds ] [ -O xmtopas=<hostname> ]
List running recording:
topasrec -l
The topasrec command records the local system data, the cross-partition data (CEC statistics), and the cluster data in binary format.
When you run the topasrec command for a CEC recording, the topasrec command collects a set of metrics from the AIX® partitions running on the same CEC. The topasrec command collects dedicated and shared partition data, and a set of aggregated values to provide an overview of the partition set on the same CEC.
Item | Description |
---|---|
-C | Records CEC statistics in binary format. The -C flag specifies that the cross-partition statistics are to be recorded. |
-c sample_count | Records the specified number of records and then stops. If the -c flag is not specified, or if the value of the sample_count parameter is zero, the recording is continuous and the topasrec command writes to the recording file until it is stopped. |
-L | Records local statistics in binary format. |
-l | Lists the recordings that are running. |
-s seconds | Specifies the recording interval in seconds. The value of the seconds parameter should be a multiple of 60. For continuous recordings ( topasrec -c 0 ) of CEC and local statistics, the default value of recording interval is 900 seconds. For a sample count that is greater than zero, the default value of the recording interval is 300 seconds. |
-O xmtopas=<hostname> | Specifies the name of the host that aggregates the data and
provides it to topasrec. If this is not specified, topasrec will
get data from one of the known aggregators. Note: You cannot use the
override option with persistent recording.
|
-o < output_filename > | Specifies the name of the output file. The value of the output_filename parameter
can be a directory with an optional file prefix. You can specify one
of the following types of file names to the output_filename parameter:
The default output file is the current directory ( ./ ). In CEC recording, Cluster Recording and local recording, the default prefix of the file name is the host name. If you provide a
file name that contains a directory and a file name prefix in the -o output_filename flag,
the name of the recorded file is in the following format:
If you provide a file name that contains only the directory
prefix, the name of the recorded file is in the following format:
In these formats, year (YY), month (MM), day (DD), hour (HH), and minute (MM) correspond to the time when the recording file is created. Note: For CEC/Cluster Recording , if xmtopas override
option is used then filename will be the value specified for xmtopas=<value>.
Example:
|
-t trace level | Specifies the trace level. The trace level can be set from 1 to 9. |
Item | Description |
---|---|
sample_count | Specifies the number of records to generate. |
output_filename | Specifies the name of the output file. |
seconds | Specifies the recording interval in seconds. |
topasrec -L -c 5 -s 60
If
the file is created at 23:14, Mar 10, 2008, and the
host name is ses15, then the output file name is ./ses15_080310_2314.topas.topasrec -L -o /home/test/sample
If
the file is created at 12:05, Mar 10, 2008, and the
host name is ses15, then the output file name is /home/test/sample_080310_1205.topas.topasrec -C -o sample -s 120 -c 10
If
the file is created at 08:07, Feb 1, 2008, and the
host name is ses15, then the output file name is ./sample_cec_080201_0807.topas.topasrec -C -o /home/test/sample_bin
If
the file is created at 04:20, Feb 1, 2008, and the
host name is ses15, then the output file name is /home/test/sample_bin_080201_0420.topas.topasrec –l
topasrec –L –t 1
topasrec -G -o sample -s 120 -c 10
If
the file is created at 08:07, Feb 1, 2008 and the
host name is ses15 then the output file name is /sample_cluster_080201_0807.topas..topasrec -G -o /home/test/sample_bin
topasrec -L -O type=azizo
If a valid /etc/perf/xmtopas.cf file
is present, the azizo recording is automatically started by the xmtopas command.
After the recording is started, it generates the azizo.<yymmdd>
file in the /etc/perf/ directory and runs only if
the xmtopas command is runningItem | Description |
---|---|
/usr/bin/topasrec | Contains the topasrec command. |