Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sar(1)

tplot(1)



  sag(1)                              CLIX                              sag(1)



  NAME

    sag - Displays system activity graphically

  SYNOPSIS

    sag [flag ... ]

  FLAGS

    -s time   Selects data later than time in the form hh[:mm].  Default is
              08:00.

    -e time   Selects data up to time.  Default is 18:00.

    -i sec    Selects data at intervals as close as possible to sec seconds.

    -f file   Use file as the data source for sar.  Default is the current
              daily data file /usr/adm/sa/sadd.

    -T term   Produces output suitable for terminal term.  See tplot for known
              terminals.  Default for term is $TERM.

    -x  spec  X-axis specification with spec in the form "name [op name ... ]
              [lo hi]".

    -y spec   Y-axis specification with spec in the same form as above.

  DESCRIPTION

    The sag command graphically displays the system activity data stored in a
    binary data file by a previous sar run.  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).  The name argument 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.
    The op argument 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 is (A+B)/(C+D).
    The lo and hi arguments are optional numeric scale limits.  If
    unspecified, they are deduced from the data.

    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 "" if blank or <Return> characters are included.  The -y
    default is:

    -y "%usr 0 100; %usr + %sys 0 100; %usr + %sys + %wio 0 100"



  2/94 - Intergraph Corporation                                              1






  sag(1)                              CLIX                              sag(1)



  EXAMPLES

    1.  To see today's CPU utilization:

        sag


    2.  To see activity over 15 minutes of all disk drives:

        TS=date +%H:%M
        sar -o tempfile 60 15
        TE=date +%H:%M
        sag -f tempfile -s $TS -e $TE -y "r+w/s[dsk]"


  FILES

    /usr/adm/sa/sadd
           Daily data file for day dd.

  DIAGNOSTICS

    No sar data
           The sar data file does non exist.

  EXIT VALUES

    The sag command will exit with a value of -1 if it encounters an error.

  RELATED INFORMATION

    Commands: sar(1), tplot(1)






















  2                                              Intergraph Corporation - 2/94




Typewritten Software • bear@typewritten.org • Edmonds, WA 98026