#!/bin/sh
-SRCDIR="`dirname $0`"
-. $SRCDIR/common.sh
+config=echo.xml
+LCONF=${LCONF:-../utils/lconf}
+LMC=${LMC:-../utils/lmc}
-NETWORK=tcp
-LOCALHOST=localhost
SERVER=localhost
-PORT=1234
-
-setup_portals
-setup_lustre
-
-$OBDCTL <<EOF
-newdev
-attach obdecho OBDDEV
-setup
-newdev
-attach ost OSTDEV
-setup \$OBDDEV
-newdev
-attach osc OSCDEV
-setup -1
-quit
-EOF
+CLIENT=localhost
+
+# create nodes
+$LMC -o $config --node $SERVER --net $SERVER tcp || exit 1
+$LMC -m $config --node $SERVER --obdtype=obdecho --ost || exit 2
+
+# force the osc to be configured (this is normally done when it is mounted)
+$LMC -m $config --node $CLIENT --osc OSC_$SERVER || exit 3
+
+$LCONF --gdb $config || exit 4
cat <<EOF
run getattr tests as:
-obdctl --device 2 test_getattr 1000000
+../utils/lctl --device \'\$OSC_$SERVER\' test_getattr 1000000
EOF
+