5 LMC="../utils/lmc -m $config"
8 SERVERS="ba-ost-1 ba-ost-2"
19 echo $1 | sed 's/[^0-9]*//g'
26 [ -f $config ] && rm $config
29 ${LMC} --add net --node client --nid '*' --nettype elan || exit 1
31 ${LMC} --add net --router --node $ROUTER --tcpbuf $TCPBUF --nid `h2ip $ROUTER` --nettype tcp || exit 1
32 ${LMC} --add net --node $ROUTER --nid `h2elan $ROUTER` --nettype elan|| exit 1
33 ${LMC} -m $config --add route --node $ROUTER --nettype elan --gw `h2elan $ROUTER` --lo `h2elan $CLIENT_LO` --hi `h2elan $CLIENT_HI` || exit 2
38 ${LMC} --add net --node $s --tcpbuf $TCPBUF --nid $s --nettype tcp || exit 1
40 ${LMC} --add route --node $ROUTER --nettype tcp --gw `h2ip $ROUTER` --lo $s || exit 2
41 # the device on the server
42 ${LMC} --add ost --node $s --obd obd_$s --obdtype=obdecho || exit 3
43 # attach to the device on the client (this would normally be a mount)
44 ${LMC} --add oscref --node client --osc OSC_obd_$s || exit 4