Chinaunix

标题: [SOLARIS] why i can not use "sa" command? [打印本页]

作者: netbanker    时间: 2002-04-27 03:40
标题: [SOLARIS] why i can not use "sa" command?
first time i type sar, it prompt can not open /var/adm/sa/sa26, no such file or directory.

So i create sa26 file

second time, it says not such command..



thx!
作者: wangts    时间: 2002-04-27 08:57
to use sar without other options,you must first do the following things:
1.crontab -e sys
uncomment all the lines
2.wait for a while
3.then you can use sar to see the result.

If you want to see the result in real time,try this :sar -u 5 10 ,which means to see the cpu resource ten times and each time uses 5 secs as a sample period.

See the sar\'s man for details.
作者: netbanker    时间: 2002-04-30 09:53
标题: hi, I tried "crontab -e sys "
it prompts \"Not authorized to use cron\"  

I am using root.
作者: wangts    时间: 2002-04-30 10:00
please see the crontab\'man for more detail.(man crontab)




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2