Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sag(1) — NEWS-os 5.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sar(1)



sag(1)                   USER COMMANDS                     sag(1)



NAME
     sag - system activity graph

SYNOPSIS
     sag [ options ]

DESCRIPTION
     sag graphically displays the system activity data stored  in
     a binary data file by a previous sar(1) 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.  sag 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:

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

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

     -i sec   Select 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.
              Other options:

     -T term  Produce output suitable  for  terminal  term.   See
              tplot(1G) 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.   Name  is either a string that will match a
              column header in the sar report, with  an  optional
              device name in square brackets, e.g., 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  cus-
              tom,    + 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).  Lo and hi 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 spec's
              separated by ; may be given for -y.  Enclose the -x
              and  -y arguments in "" if they include whitespace.
              The -y default is:



                                                                1





sag(1)                   USER COMMANDS                     sag(1)



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

EXAMPLES
     sag needs a graphics terminal in order  to  execute.   On  a
     NEWS  workstation  running  the X Window System, perform the
     following steps:

     1.   Place the mouse cursor in an xterm window.

     2.   Hold down the Ctrl key and press the middle mouse  but-
          ton.

     3.   Select Show Tek Window from the VT Options menu.

     4.   Replace the mouse cursor in the xterm window.

     5.   Hold down the Ctrl key and press the middle mouse  but-
          ton again.

     6.   Select Switch to Tek Mode from the VT Options menu

     7.   Place the mouse cursor in  the  Tek  window  and  press
          return.

     Enter the appropriate sag command at the prompt in  the  Tek
     window.

     To see today's CPU utilization:
          sag
     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.

SEE ALSO
     sar(1).















                                                                2



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