diff --git a/bin/captureStats.sh b/bin/captureStats.sh new file mode 100755 index 0000000..95107e9 --- /dev/null +++ b/bin/captureStats.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +out=stats-`date +%Y-%m-%d`.out +# clear the output file +> $out + +echo "break to stop stats collection" +while true; do + date +%Y-%m-%d:%H:%M:%S | tee -a $out + vmstat -c 5 | tee -a $out +done