sar.1m (2010 09)

s
sar(1M) sar(1M)
rawch/s Raw input characters per second.
canch/s Input characters per second processed by canon()
.
outch/s Output characters per second.
rcvin/s Receive incoming character interrupts per second.
xmtin/s Transmit outgoing character interrupts per second.
mdmin/s Modem interrupt rate (not supported; always 0).
-z Report Memory File System (MemFS) data.
sar will recognize the -z option when HP’s
optional
SAR-MEMFS product is installed on the system; it will display the number of MemFS
blocks in memory (blkcnt) and the number of MemFS blocks in swap (swpcnt). The number
of MemFS blocks is expressed in terms of 4 KB only.
Note that the
-z option does not record MemFS data into a file. However, if the
-z and -o
options are used together, then the data for all the options except the MemFS option is
recorded into a file. You can then query this data.
It is also not possible to use the
-z option with the -f option. Using the -A option and the
-f option together will not display the MemFS data. However, using the
-A option with t
and n will display the MemFS data.
RETURN VALUE
This command returns the following values upon completion:
0 Completed successfully.
>0 An error occurred.
EXAMPLES
Watch CPU activity evolve for 5 seconds:
sar15
Watch CPU activity evolve for 10 minutes and save data:
sar -o temp 60 10
If the SAR-MEMFS product is installed, watch MemFS activity evolve for 10 minutes and save data; all
data other than MemFS data is stored in file temp:
sar -z -o temp 60 10
Review disk and tape activity from that period later:
sar -d -f temp
Review cpu utilization on a multi-processor system later:
sar -u -M -f temp
Watch lunpath activity evolve for 5 seconds:
sar -L 1 5
Watch tape activity evolve for 5 seconds:
sar -t 1 5
Watch HBAs activity evolve for 5 seconds:
sar -H 1 5
Watch disk reads and writes per second for 5 seconds:
sar -R -d 1 5
WARNINGS
Users of sar must not rely on the exact field widths and spacing of its output, as these will vary depend-
ing on the system, the release of HP-UX, and the data to be displayed.
The output of
sar is unpredictable if a corrupted or wrong data file is given as argument with the -f
option.
HP-UX 11i Version 3: September 2010 5 Hewlett-Packard Company 5