The iostat
command takes into account the following environment
variables:
POSIXLY_CORRECT
When this variable is set, transfer rates are shown in
512-byte blocks instead of the default 1K blocks.
S_COLORS
By default statistics are displayed in color when the
output is connected to a terminal. Use this variable to
change the settings. Possible values for this variable are
never, always or auto (the latter is equivalent to the
default settings).
Please note that the color (being red, yellow, or some
other color) used to display a value is not indicative of
any kind of issue simply because of the color. It only
indicates different ranges of values.
S_COLORS_SGR
Specify the colors and other attributes used to display
statistics on the terminal. Its value is a colon-
separated list of capabilities that defaults to
H=31;1:I=32;22:M=35;1:N=34;1:Z=34;22
. Supported
capabilities are:
H=
SGR (Select Graphic Rendition) substring for
percentage values greater than or equal to 75%.
I=
SGR substring for device names.
M=
SGR substring for percentage values in the range
from 50% to 75%.
N=
SGR substring for non-zero statistics values.
Z=
SGR substring for zero values.
S_TIME_FORMAT
If this variable exists and its value is ISO
then the
current locale will be ignored when printing the date in
the report header. The iostat
command will use the ISO
8601 format (YYYY-MM-DD) instead. The timestamp displayed
with option -t
will also be compliant with ISO 8601
format.