摘要: #!/bin/bash 2 hd=sda 3 disk=/dev/$hd 4 UPtime=`/usr/bin/uptime |awk '{print $3""$4""$5}'` 5 KBread_sec=`iostat -x $disk|grep $hd |awk '{print $8}'` 6 KBwrite_sec=`iostat -x $disk|grep $hd |awk '{print $9}'` 7 echo $KBread_sec 8 echo $KBwrite_sec 9 echo $UP 阅读全文
posted @ 2014-01-10 16:43 jlt 阅读(83) 评论(0) 推荐(0) 编辑