The
sar
command can be
used to collect the following types of data:
-
global data (data for the entire
system)
-
processor level data (data for
each processor on the system)
If processor level data
is collected, it can be staged in the SARCPUB table. Each UNIX environment
has its own set of options that can be specified with the
sar
command. SAS IT Resource Management recommends
setting the following switches:
-
for HP-UX operating environments:
To collect global data
as well as per-processor data on HP-UX, you must create two files
by executing two
sar
commands.
-
To collect global data, execute
the following command:
sar -A -f /var/adm/sa/sa$DATE > /var/adm/sa/sar$DATE_global
-
To collect processor level data,
execute the following command:
sar -Mu -f /var/adm/sa/sa$DATE > /var/adm/sa/sar$DATE_processor
-
for AIX operating environments:
To collect global data
as well as per-processor data on AIX, you must create two files by
executing two
sar
commands.
-
To collect global data, execute
the following command:
sar -bdkqrvy -f /var/adm/sa/sa$DATE > /var/adm/sa/sar$DATE_global
-
To collect processor level data,
execute the following command:
sar -A -P ALL -f /var/adm/sa/sa$DATE > /var/adm/sa/sar$DATE_processor
-
for Linux operating environments:
To collect both global
and processor level data, use the following
sar
command:
sar -A -f /var/adm/sa/sa$DATE > /var/adm/sa/sar$DATE
-
for SunOS Solaris operating environments:
You cannot capture
processor level data on SunOS Solaris. To collect global data, execute
the following
sar
command:
sar -A -f /var/adm/sa/sa$DATE > /var/adm/sa/sar$DATE
All of the files that
are created by the
sar
command should
be placed in a single directory that is read by the staging transformation
in SAS IT Resource Management 3.1.1. In the staging transformation,
all the files in this directory are read and used to update the SAR
data mart.
Note: For more information, see
your system's documentation about the
sar
and
sapd
commands and the sa1 and
sa2 shell scripts.