Script to create FLARs

This one will login to a list of servers and create a flar in a NFS share

#!/bin/ksh

for h in `cat hosts.txt`;do
        echo "----------------------- $h"
cat <<EOF  > /tmp/$h
mkdir -p /b; mount -F nfs 10.80.120.219:/space /b; ls /b
time flarcreate -n "$h" -c -S -R / /b/flars/$h.flar
umount /b
EOF
scp /tmp/$h $h:/tmp
ssh $h /tmp/$h
done

Leave a Reply

Your email address will not be published. Required fields are marked *