Update nodemgmt-scripts.sh
This commit is contained in:
@@ -35,17 +35,17 @@ STATUS() {
|
||||
# fi
|
||||
# done
|
||||
|
||||
# for rcheck in "${REPL_CHECK[@]}"; do
|
||||
# ${NCMD} rm -f ${FOLDER}/test.repl
|
||||
# daterun=`date +%Y-%m-%d-%H-%M-%S`
|
||||
# if [ "${NCMD}" = "" ]; then
|
||||
# echo -e "iDS-Node${nid} (${nip})\n${daterun}" > ${FOLDER}/test.repl
|
||||
# yes | cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl
|
||||
# else
|
||||
# ${NCMD} "echo -e \"Status-Check (${NODE_HOSTNAME})\n${daterun}\" > ${FOLDER}/test.repl"
|
||||
# yes | ${NCMD} "cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl"
|
||||
# fi
|
||||
# done
|
||||
for rcheck in "${REPL_CHECK[@]}"; do
|
||||
${NCMD} rm -f ${FOLDER}/test.repl
|
||||
daterun=`date +%Y-%m-%d-%H-%M-%S`
|
||||
if [ "${NCMD}" = "" ]; then
|
||||
echo -e "iDS-Node${nid} (${nip})\n${daterun}" > ${FOLDER}/test.repl
|
||||
yes | cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl
|
||||
else
|
||||
${NCMD} "echo -e \"Status-Check (${NODE_HOSTNAME})\n${daterun}\" > ${FOLDER}/test.repl"
|
||||
yes | ${NCMD} "cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl"
|
||||
fi
|
||||
done
|
||||
|
||||
echo -e "${idsST[Bold]}"; DIVIDER
|
||||
echo -e "${idsCL[Yellow]} Node Service Status${idsCL[Default]}"
|
||||
|
||||
Reference in New Issue
Block a user