sarをいれる 〜for Solaris2.6〜
sarをいれる
〜for Solaris2.6〜
0.更新履歴
1.はじめに
このドキュメントは,Solaris2.6にシステム管理ツールsar(system activity reporter)を導入する手順を示す.
2.手順
- Solaris2.6のCD-ROMをセットする.
- rootユーザでログインする.
- sarのパッケージであるSUNWaccuをpkgaddコマンドでインストールする.
db1# pwd
/cdrom/sol_2_6_598_sparc/s0/Solaris_2.6/Product
db1# pkgadd -d `pwd` SUNWaccu
Processing package instance <SUNWaccu> from </cdrom/sol_2_6_598_sparc/s0/Solaris_2.6/Product>
System Accounting, (Usr)
(sparc) 11.6.0,REV=1997.07.15.21.46
Copyright 1997 Sun Microsystems, Inc. All rights reserved.
Using </> as the package base directory.
## Processing package information.
## Processing system information.
2 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
The following files are already installed on the system and are being
used by another package:
/usr/bin <attribute change only>
/usr/lib <attribute change only>
Do you want to install these conflicting files [y,n,?,q] y
## Checking for setuid/setgid programs.
The following files are being installed with setuid and/or setgid
permissions:
/usr/lib/acct/accton <setuid root>
Do you want to install these as setuid/setgid files [y,n,?,q] y
Installing System Accounting, (Usr) as <SUNWaccu>
## Installing part 1 of 1.
473 blocks
Installation of <SUNWaccu> was successful.
db1#
|
- /usr/bin,/usr/libに対して権限がないとでたりするが,yで答えればよい.
- アクセス権限の設定により,とうぜん出ない場合もある.
- インストールができたら,実行してみる.
# sar -d
sar: can't open /var/adm/sa/sa14
No such file or directory
# mkdir /var/adm/sa
# sar -d
sar: can't open /var/adm/sa/sa14
No such file or directory
# mkdir /var/adm/sa/sa14
# sar -d
SunOS db1 5.6 Generic_105181-19 sun4u 01/10/70
11:27:13 device %busy avque r+w/s blks/s avwait avserv
09:00:00 unix restarts
#
|
- ディレクトリがないとエラーが出るので,作成する.
- sa14となっているのは,実行した日が2月14日だからである.