ITPub博客

首页 > Linux操作系统 > Linux操作系统 > configure sar for hp-ux and suse linux

configure sar for hp-ux and suse linux

原创 Linux操作系统 作者:xhailiang 时间:2006-05-06 00:00:00 0 删除 编辑

SAR作为LINUX AND UNIX PERFORMANCE MANAGER TOOLS ,IT VERY USEFUL FOR CHECK OS PERFORMANCE, HERE WILL SHOW HOW TO CONFIGURE SAR FOR LINUX AND UNIX.


HP-UX
1.create sa directory on /var/adm/

2.create sa log file sa01 ~ sa31 on /var/adm/sa/
ex: ./usr/lbin/sa/sadc /var/adm/sa/sa01 ~ sa31

3. crontab -e add.
# Sar OS Monitor
0 * * * * /usr/lib/sa/sa1 60 60


sar -u ---- CPU (default)
sar -b ---- Buffer activity
sar -d ---- activity for each block device
sar -w ---- Report system swapping & switching activity
sar -q ---- CPU run queue ( can work with -M)
sar -A ---- Report all data

SUSE-LINUX

1.create sa log file sa'date+%d' on /var/log/sa/
execute ./usr/lib/sa/sadc /var/log/sa/sa'date+%d'

2.crontab -e
0 * * * * /usr/lib/sa/sa1 60 60

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/308563/viewspace-171853/,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2008-02-17

  • 博文量
    270
  • 访问量
    414382