
#!/bin/sh
# File	: snapvault_update
# By	: Maarten de Boer, 110513
# Subject	: Script to update snapvaults from some file



SSH="ssh -n"
FILER="nlnaf07"

${SSH} ${FILER} snapvault status|grep nlnaf02|awk '{print $2}'|grep -v secondary|grep -v Destination|while read SVDEST
do
  echo "${SVDEST}"
  ${SSH} ${FILER} snapvault update ${SVDEST}
  ${SSH} ${FILER} snapvault status ${SVDEST}

  sleep 30

done











exit 0

