HP-UX Reference (11i v2 07/12) - 1M System Administration Commands N-Z (vol 4)

s
sar(1M) sar(1M)
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.
EXAMPLES
Watch CPU activity evolve for 5 seconds:
sar 1 5
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 multiprocessor system later:
sar -u -M -f temp
WARNINGS
Users of sar must not rely on the exact field widths and spacing of its output, as these will vary depending
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.
The behavior of the sa1 and sa2 scripts and the sadc command remain unaltered with the SAR-
MEMFS
product; these scripts and command do not record data reported by the -z option.
FILES
/var/adm/sa/sadd daily data file, where dd is two digits representing the day of the month.
SEE ALSO
sa1(1M).
STANDARDS CONFORMANCE
sar: SVID2, SVID3
HP-UX 11i Version 2: December 2007 Update 4 Hewlett-Packard Company 289