°Ô½Ã¹° 1,369°Ç
   
sar cmd example
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2015-11-27 (±Ý) 10:53 Á¶È¸ : 4146
±ÛÁÖ¼Ò :
                                

# apt-get install sysstat
# vim /etc/default/sysstat
ENABLED="true"
# service sysstat start
 * Starting the system activity data collector sadc                  [ OK ] 

·Î±×°æ·Î : /var/log/sysstat
ÆÄÀϸí : sa27 (sa³¯Â¥ÇüÅ·ΠÆÄÀÏÀÌ »ý¼º)

example1)  
2ÃÊ´ÜÀ§·Î 5¹ø CPU Report
# sar 2 5


example2)
·¹Æ÷Æ®¸¦ ¹ÙÀ̳ʸ® ÆÄÀÏ ÇüÅ·ΠÀúÀå
# sar 2 5 -o /tmp/sar_data > /dev/null 2>&1

º¸±â
# sar -f /tmp/sar_data


example3) 
¸Þ¸ð¸® ·¹Æ÷Æ®
# sar -r 2 5 


example4) 
ÆäÀÌ¡ »óÅ ·¹Æ÷Æ®
# sar -B 2 5


À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.