On the Solaris operating system, 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]

Options

Examples

sag

See today’s CPU utilization.

  • Syntax
  • Examples
  • Related commands
  • Linux commands help

name[op name]…[lo hi]

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

TS=date +%H:%M

sar -o /tmp/tempfile 60 15

TE=date +%H:%M

sag -f /tmp/tempfile -s $TS -e $TE -y “r+w/s[dsk]”

The above four commands, when executed in sequence, displays all activity over 15 minutes of all disk drives.

sar — Display system activity information under Solaris.