/etc/cron.d/sysstat中
# run system activity accounting tool every 10 minutes
*/10 * * * * root /usr/lib64/sa/sa1 1 1
改为:
# run system activity accounting tool every 10 minutes
*/1 * * * * root /usr/lib64/sa/sa1 1 1
保存就可以了。
查询某天的sar信息可以使用命令
sar -f 文件名
如:sar -f /var/log/sa/sa21
AIX下设置sar作业
# Collect measurements at 10-minute intervals
0,10,20,30,40,50 * * * * /usr/lib/sa/sa1
# Create daily reports and purge old files
0 0 * * * /usr/lib/sa/sa2 -A
备份crontab
crontab -l > /home/oracle/crontab_bak
HP UX
mkdir /var/adm/sa
0,10,20,30,40,50 * * * * /usr/lib/sa/sa1
0 0 * * * /usr/lib/sa/sa2 -A
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/15747463/viewspace-732697/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/15747463/viewspace-732697/