Recording data, Suppressing the display (-quiet), Replaying data – HP XC System 3.x Software User Manual
Page 89: Plotting data, Replaying data plotting data
Recording, Replaying, and Plotting xclus and xcxclus Data
You can save the data from the xclus or xcxclus utility in a file. The utilities update data for
each monitored node every second. You can use this data file either to replay the data or to plot
graphs of node performance statistics.
Recording Data
To record data and create a data file, specify the -output option when starting the xclus or
xcxclus
utility. The syntax is as follows:
xclus|xcxclus -output data_file_prefix
The xclus or xcxclus utility creates a data file with the name data_file_prefix.xclus.
To run the xcxclus utility and store the output in a file named test.xclus, enter the following
command:
% xcxclus -output test
Suppressing the Display (-quiet)
To create a data file without opening an xclus or xcxclus display window, specify the -quiet
option with the -output option. To terminate an xclus or xcxclus process without a display
window, you must manually send the process an interrupt (Control-c) or KILL signal.
Replaying Data
To play back the display from recorded data, specify the data file prefix when you invoke the
xclus
or xcxclus utility. The following command line plays back the test.xclus data file:
% xclus test
The graphical display differs from normal xclus and xcxclus displays because there is an
additional pull-down menu named Control next to the File menu. Choosing the Play... option
from the Control menu opens a dialog box that you can use to control the playback.
Plotting Data
The -plot option uses gnuplot to display plotted data from an xclus or xcxclus data file
created using the -output option. The -plot option also creates a gnuplot data file and a
gnuplot
script to redisplay the data. The syntax is as follows:
% xclus|xcxclus -plot plot_file_prefix data_file_prefix
Where:
plot_file_prefix
Specifies the prefix the utility uses to create the gnuplot data and
script files.
data_file_prefix
Specifies the file name prefix used to create the data file.
To plot data from the data file created using the command xclus -output test, enter the
following command:
% xclus -plot testplot test
The xclus utility displays the following prompt:
Do you wish to view the created plots now using the command
$ /opt/xtools/gnu/bin/gnuplot prefix.xclus.gnuplot
(y/[n])?
Enter y to display the plotted data for the first node. Each time you press Enter, the utility
displays the plotted data for the next node monitored. Continue pressing Enter until the utility
displays data for all the nodes.
The xclus or xcxclus utility creates the following files:
plot_file_prefix.xclus.plotdata
Data file for gnuplot.
Recording, Replaying, and Plotting xclus and xcxclus Data
89