Whamcloud - gitweb
Allow runvmstat to log to a file for perf monitoring.
authoradilger <adilger>
Thu, 5 Jun 2003 23:31:29 +0000 (23:31 +0000)
committeradilger <adilger>
Thu, 5 Jun 2003 23:31:29 +0000 (23:31 +0000)
Add a similar logging obdstat script also.

lustre/tests/runobdstat [new file with mode: 0644]

diff --git a/lustre/tests/runobdstat b/lustre/tests/runobdstat
new file mode 100644 (file)
index 0000000..886ce8f
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+PATH=`dirname $0`/../utils:$PATH
+
+obdstat filter 1 | while read LINE; do
+       echo "`date +s`: $LINE"
+       [ "$1" ] && echo "`date +s`: $LINE" >> $1
+done