-################################################################################
-cat > $script <<EOF
-IOR START
-# -f <this file>
-# blockSize=<set from cmdline> -b 8G
-# transferSize=<set from cmdline> -t 1M
-# filePerProc=<set from cmdline> -F
-# testFile=<set from cmdline> -o /mnt/lustre/ior_testfile
-# uniqueDir=<set from cmdline> -u
-# verbose=<set from cmdline> -v
-# reorderTasks=<set from cmdline> -C
-
-# unused options
-# collective=0 (MPI only)
-# individualDataSets=0 [not working]
-# noFill=0 (HDF5 only)
-# preallocate=0 (MPI only)
-# useSharedFilePointer=0 [not working]
-# useFileView=<MPI only>
-# useStridedDataType=0(MPI only)
-# showHints=0
-# showHelp=0
-
-# setup
- api=POSIX
- fsync=1
- repetitions=1
- useO_DIRECT=0
- interTestDelay=10
- intraTestBarriers=1
- storeFileOffset=0
- quitOnError=1
- segmentCount=1
- singleXferAttempt=0
-
-# write
- readFile=0
- writeFile=1
- useExistingTestFile=0
- keepFile=1
- RUN
-
-# rewrite
- useExistingTestFile=1
- RUN
-
-# read
- readFile=1
- writeFile=0
- useExistingTestFile=1
- RUN
-
-# reread (bug in ior means it needs each run needs at least 1 directive)
- readFile=1
- RUN
-
-# write again
- readFile=0
- writeFile=1
- useExistingTestFile=1
- keepFile=0
- RUN
-IOR STOP
-
-EOF
+# total # bytes written/read by any client node
+min_per_client_size=${min_per_client_size:-"1G"}
+min_total_size=${min_total_size:-"2G"}
+
+# should each task do I/O to its own file?
+file_per_task=${file_per_task:-1}
+
+# the binaries
+IOR=${IOR:-"/usr/local/sbin/IOR"}
+llmount=${llmount:-"llmount"}
+# Select mpirun, yod, or pdsh
+fanout_cmd=${fanout_cmd:-"pdsh"}
+# mpirun still uses pdsh for cleanup
+pdsh=${pdsh:-"pdsh"}
+pdsh_args="-R ssh -S -b -w "
+
+# the result file prefix (date/time + hostname makes unique)
+rslt_loc=${rslt_loc:-"/tmp"}
+rslt=${rslt:-"$rslt_loc/ior_survey_`date +%F@%R`_`uname -n`"}
+
+# where lustre is mounted on the clients
+lustre=${lustre:-"/mnt/lustre"}
+
+# basename of the test file(s)
+testfile=${testfile:-"${lustre}/ior/ior_survey_testfile"}
+
+#don't spin for MPI completions
+export LIBELAN_WAITTYPE=0