#!/bin/sh
#
# Run a static mapper over on some machine with a myrinet card.
# This doesn't configure anything, but just dumps route files
# which can be used by the "load-routes" script.
#
# Assumes /usr/local is mounted read-write.
#
srcdir=/usr/local/gm/sbin
maphost=node01
output="static.map static.hosts static.routes"

cd $srcdir
rsh -n $maphost \
    cd $srcdir \;\
    ./mapper ./static.args
if [ $? -ne 0 ] ; then exit $? ; fi
chmod 644 $output
exit 0
