From e9fb66aae51814c4df90f863cf6d0e97379cbc28 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 7 Feb 2019 14:25:12 -0600 Subject: [PATCH] test --- defaults.inc | 1 + nodemgmt-scripts.sh | 23 ++++++++++++----------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/defaults.inc b/defaults.inc index 2f41a27d..4ecefcea 100755 --- a/defaults.inc +++ b/defaults.inc @@ -114,6 +114,7 @@ CERT-CHECK(){ } CHECK_HOST(){ + echo ${1} if [ -z ${1+x} ]; then ping -c 3 ${1} > /dev/null 2>&1 if [ $? -ne 0 ]; then diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 12bfb685..d40235c4 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -34,17 +34,18 @@ STATUS() { # done # 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]}"