Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-07 13:21:26 -06:00
parent 581f1b0705
commit 8f32030883

View File

@@ -209,19 +209,18 @@ STATUS-CHECK(){
else else
checked="`ssh root@10.5.10.51 \"ssh root@${nip} \"cat ${REPL_CHECKS[${rcheck}]}/test.repl\" | diff - ${REPL_CHECKS[${rcheck}]}/test.repl\"`" checked="`ssh root@10.5.10.51 \"ssh root@${nip} \"cat ${REPL_CHECKS[${rcheck}]}/test.repl\" | diff - ${REPL_CHECKS[${rcheck}]}/test.repl\"`"
fi fi
if [ `date +%s` -gt $timeout ]; then if [ "`date +%s`" -gt "$timeout" ]; then
timeout=true timeout=true
break break
fi fi
done done
if [ "${timeout}" != "true" ]; then if [ "${timeout}" != "true" ]; then
rm -f ${FOLDER}/${nip}-${rcheck}.down rm -f ${FOLDER}/${nip}-${rcheck}.down
elif [ ! -f ${FOLDER}/${nip}-${rcheck}.down ]; then else
touch ${FOLDER}/${nip}-${rcheck}.down touch ${FOLDER}/${nip}-${rcheck}.down
echo "Timeout occurred in waiting for replication between primary node and iDS-Node${nid} (${nip}) for the replicated folder of '${rcheck}'." | mail -s "Status-Check" ${STATUS_CHECK_EMAIL} echo "Timeout occurred in waiting for replication between primary node and iDS-Node${nid} (${nip}) for the replicated folder of '${rcheck}'." | mail -s "Status-Check" ${STATUS_CHECK_EMAIL}
fi fi
done done
echo
fi fi
nid=`expr $nid + 1` nid=`expr $nid + 1`
done done