SUMMARY: vmstat and iostat
- From: Bhavesh Shah <shah.bhavesh@xxxxxxxx>
- Date: Tue, 23 May 2006 11:05:15 -0700
Thanks to all for their suggetion. Too many to list.
The solution is to use tee -a
man tee
-a Appends the output to the files rather than
overwriting them.
Another way is to use iostat -T d -xnczC thanks to Johan Hartzenberg.
My Question was:
We are having some performance issue on Solaris 9 running sendmail for_______________________________________________
which i am planning to capture vmstat and iostat statictics for 3-4 hrs.
The problem is script is running fine it doesn't put timestamp like sar.
Here is what i am doing:
#! /bin/ksh
DATE=`date`
while true
do
echo "$DATE" >> report_vmstat
vmstat 10 | tee report_vmstat
done
But it still doesn't put timestamp. Any idea why its not printing date?
Also if you have a better option then this one to capture data from
vmstat and iostat or any other tool please do share with me.
Regards
shahb
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
- Prev by Date: Amber Lights on V490s
- Next by Date: SUMMARY: moving quota to new disk
- Previous by thread: Amber Lights on V490s
- Next by thread: SUMMARY: moving quota to new disk
- Index(es):