stat(1L)

NAME
stat - Display a strip chart of one or more current machine statistics.

SYNOPSIS
stat [ -c<color_map_indexes> ] [ -bsf<freq> [[ -<max> ] <parameter> ]] ...

DESCRIPTION
Stat is a graphical version of vmstat that runs on mgr terminals. Stat, with no options, displays the list of parameters it will chart.

The following options are recognized on the command line:

-b  Do not update the display if the window is obscured. When the window is uncovered, the display rushes to catch up, instead of reflecting reality immediately.

-s  Traces are drawn as thin lines, instead of solid filled.

-c  If stat is run on a color version of MGR, various parts of the display are shown in different colors. This option alters the colormap index values used. The -c is immediately followed by a string of characters in the range of [0-9a-z] where each color represents a colormap index from 0 to 36 respectively. The position in the string determines what portion of the display is affected as follows:

    #	use

    0	unused
    1	background
    2	title
    3	axis labels
    4	grid lines
    5	values that exeed the maximum
    6	color for plot 1
    7	color for plot 2 etc.

-f<freq>
    The time interval between display updates is
    freq
    seconds.  The default is 5 seconds.

-<max>
    specifies the maximum value of the following parameter, in units appropriate for that parameter.

<parameter>
    is a code that represents a particular statistic to plot.
    The available parameters are:
     r	jobs in run q
     b	jobs blocked
     w	jobs waiting
     fre	free memory
     fr	freed pages
     d1	disk 1 accesses
     d2	disk 2 accesses
     d3	disk 3 accesses
     d4	disk 4 accesses
     in	interrupts
     sy	system calls
     cs	context switches
     us	% user time
     kn	% system time
     id	% idle time

SEE ALSO
mgr(1L) vmstat(1)

DIAGNOSTICS

Window is not wide enough
    Make the window wider and the graph will continue.

Window is not high enough
    Make the window taller and the graph will continue.

BUGS
If the window is reshaped, stat requires up to freq (usually 3) seconds to learn about the new window size.

Stat calls vmstat(1), and assumes a particular (i.e. BSD 4.2) output format from vmstat(1).