- 论坛徽章:
- 0
|
---------------------------------solaris 8/9--------------------------------------------------------------------
切换到sys用户,将crontab中的sa这列打开即可
# su - sys
Sourcing //.profile-EIS.....
#
# pwd
/
#
# crontab -l
#ident "@(#)sys 1.5 92/07/14 SMI" /* SVr4.0 1.2 */
#
# The sys crontab should be used to do performance collection. See cron
# and performance manual pages for details on startup.
#
# 0 * * * 0-6 /usr/lib/sa/sa1
# 20,40 8-17 * * 1-5 /usr/lib/sa/sa1
# 5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A
0,5,10,15,20,25,30,35,40,45,50,55 * * * 0-6 /usr/lib/sa/sa1
#
# exit
# exit
--------------------------------------------solaris 10----------------------------------------------------
将下列服务打开,或者也可以通过solaris 8/10的方式将crontab打开。
# svcs -a |grep sar
disabled Sep_15 svc:/system/sar:default
#
做了上述操作后,会再/var/adm/sa/目录下面产生每个月的sa采样记录,即可通过sar -f /var/adm/sa/saxx来查看历史记录。跟不同的参数,查看不同的数据。 |
|