system activity graph
sag [ options ]
The sag command graphically displays the system activity data
stored in a binary data file by a previous
Any of the sar data items may be plotted
singly, or in combination; as cross plots, or versus time.
Simple arithmetic combinations of data may be specified.
The sag command invokes sar
and finds the desired data by string-matching the data column header
(run sar to see what is available).
These options are passed through to sar:
Select data later than time in the form
hh [ :mm ].
Default is 08:00.
Select data up to time.
Default is 18:00.
Select data at intervals as close as possible to sec seconds.
Use file as the data source for sar.
Default is the current daily data file /usr/adm/sa/sadd.
name is either a string that will match a column header in the
report, with an optional device name in square brackets,
for example, r+w/s[dsk-1], or an integer value.
op is +, , or / surrounded by blanks.
Up to five names may be specified.
Parentheses are not recognized.
Contrary to custom, + and
have precedence over and /.
Evaluation is left to right.
Thus A / A + B 100
is evaluated (A/(A+B))100,
and A + B / C + D
lo and hi
are optional numeric scale limits.
If unspecified, they are deduced from the data.
Produce output suitable for terminal type term.
for a list of supported terminal types.
A suitable terminal type is the Tektronix 4014 (-T 4014)
which can be emulated using
If you use xterm to emulate a 4014, you should also set
the value of the environment variable TERM to 4014
and export this before running sag.
The default value of term is the value of the
environment variable TERM.
x-axis specification with spec in the form:
"name [ op name ] ... [ lo hi ]"
y-axis specification with spec in the same form as above.
A single spec is permitted for the x axis.
If unspecified, time is used.
Up to 5 specs separated by ``;''
may be given for -y.
Enclose the -x and -y arguments in
quotation marks ("")
if blanks or line continuations (\ CR) are included.
The -y default is:
-y "%usr 0 100; %usr + %sys 0 100; %usr + %sys + %wio 0 100"
To see today's CPU utilization:
To see activity over 15 minutes of all disk drives:
sar -o tempfile 60 15
sag -f tempfile -s $TS -e $TE -y "r+w/s[dsk]"
daily data file for day dd
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003