sar µ¥ÀÌŸ¸¦ ¹ÞÀ¸·Á¸é ´ÙÀ½°ú °°Àº °úÁ¤À» ¼öÇàÇÑ´Ù.
1. /etc/init.d/perf ÈÀÏ¿¡¼ ´ÙÀ½°ú °°ÀÌ # commnet¸¦ Á¦°ÅÇÑ´Ù.
#MATCH=`who -r|grep -c "[234][ ]*0[ ]*[S1]"`
#if [ ${MATCH} -eq 1 ]
#then
# su sys -c "/usr/lib/sa/sadc /var/adm/sa/sa`date +%d`"
#fi
|
|
+--->
MATCH=`who -r|grep -c "[234][ ]*0[ ]*[S1]"`
if [ ${MATCH} -eq 1 ]
then
su sys -c "/usr/lib/sa/sadc /var/adm/sa/sa`date
+%d`"
fi
2. /etc/init.d/perf ÈÀÏÀ» /etc/rc2.d µð·ºÅ丮 ¹Ø¿¡ ¸µÅ©¸¦ °Ç´Ù.
# ln /etc/init.d/perf /etc/rc2.d/S21perf
3. "crontab -e sys" ¸í·É¾î¸¦ ½ÇÇàÇÏ¿©, ´ÙÀ½°ú °°Àº Ãß°¡ÇÑ´Ù.
crontab -e sys¸¦ ½ÇÇàÇϸé vi ¿¡µðÅÍ È¸éÀÌ ³ªÅ¸³´Ù. vi ȸéÀÌ ³ªÅ¸³ªÁö
¾ÊÀ¸¸é ȯ°æº¯¼ö EDITOR¿¡ vi¸¦ ¼³Á¤ÇÑ´Ù.
´ÙÀ½Àº 5ºÐ°£°ÝÀ¸·Î sar µ¥ÀÌŸ¸¦ ¹Þ´Â °ÍÀÌ´Ù.
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/lib/sa/sa1
4. sar µ¥ÀÌŸ¸¦ ¹Þ±â À§ÇÑ Ãʱâ ÀÛ¾÷À» ÇÑ´Ù. ´ÙÀ½°ú °°Àº ¸í·É¾î¸¦ ½ÇÇàÇÑ´Ù.
# sh /etc/init.d/pert start
* rebootÇÏÁö ¾Ê¾Æµµ µÇ¸ç, rebootÇÏ¿©µµ sar µ¥ÀÌŸ´Â °è¼Ó ¹ÞÈù´Ù.
* À§ ÀÚ·á´Â ½ã¿¡¼ ¹Þ¾Æ¿Â ÀÚ·áÀÔ´Ï´Ù.
|