Linux and Unix sag command

Quick links

About sag
Syntax
Examples
Related commands
Linux and Unix main page

About sag

The sag utility graphically displays the system activity data stored in a binary data file by a previous sar run.

Syntax

sag [-e time] [-f file] [-i sec] [-s time] [-T term] [-x spec] [-y spec]

-e timeSelect data up to time . Default is 18:00.
-f fileUse file as the data source for sar . Default is the current daily data file /usr/adm/sa/sadd.
-i secSelect data at intervals as close as possible to sec seconds.
-s timeSelect data later than time in the form hh[:mm]. Default is 08:00.
-T termProduce output suitable for terminal term. See tplot for known terminals. Default for term is $TERM.
-x specx axis specification with spec in the form:

name[op name]...[lo hi]

name is either a string that will match a column header in the sar 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 blank spaces. 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 as (A/(A+B))*100, and A+B/C+D is (A+B)/(C+D). lo and hi are optional numeric scale limits. If unspecified, they are deduced from the data.

Enclose spec in double-quotes ("") if it includes white space.

A single spec is permitted for the x axis. If unspecified, time is used.

-y specy axis specification with spec in the same form as for -x. Up to 5 spec arguments separated by a semi-colon (;) may be given for -y. The -y default is: 

-y"%usr0100;%usr+%sys0100;%usr+%sys+%wio0100"

Examples

sag

See today's CPU utilization.

Related commands

sar