SERVER_START=0
SERVER_CNT=62
-PORT=988
TCPBUF=1048576
-h2ip () {
+h2tcp () {
echo "${1}"
}
BATCH=/tmp/lmc-batch.$$
[ -f $config ] && rm $config
# Client node
-${LMC} --node client --tcpbuf $TCPBUF --net '*' tcp $PORT || exit 1
+${LMC} --add net --node client --tcpbuf $TCPBUF --nid '*' --nettype tcp || exit 1
# this is crude, but effective
let server_per_gw=($SERVER_CNT / $GW_CNT )
while (( $server < $SERVER_CNT + SERVER_START ));
do
echo "server: $server"
- ba=ba$server
+ OST=ba$server
# server node
- ${LMC} --node $ba --tcpbuf $TCPBUF --net $ba tcp $PORT || exit 1
+ ${LMC} --add net --node $OST --tcpbuf $TCPBUF --nid $OST --nettype tcp || exit 1
# the device on the server
- ${LMC} --node $ba --obdtype=obdecho --ost || exit 3
+ ${LMC} --add ost --node $OST --obd obd_$OST --obdtype=obdecho || exit 3
# osc on client
- ${LMC} --node client --osc OSC_$ba
+ ${LMC} --add oscref --node client --osc OSC_obd_$OST
let server=$server+1
done