test
This commit is contained in:
@@ -114,6 +114,7 @@ CERT-CHECK(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
CHECK_HOST(){
|
CHECK_HOST(){
|
||||||
|
echo ${1}
|
||||||
if [ -z ${1+x} ]; then
|
if [ -z ${1+x} ]; then
|
||||||
ping -c 3 ${1} > /dev/null 2>&1
|
ping -c 3 ${1} > /dev/null 2>&1
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
|||||||
@@ -34,17 +34,18 @@ STATUS() {
|
|||||||
# done
|
# done
|
||||||
# fi
|
# fi
|
||||||
# done
|
# done
|
||||||
for rcheck in "${REPL_CHECK[@]}"; do
|
|
||||||
${NCMD} rm -f ${FOLDER}/test.repl
|
# for rcheck in "${REPL_CHECK[@]}"; do
|
||||||
daterun=`date +%Y-%m-%d-%H-%M-%S`
|
# ${NCMD} rm -f ${FOLDER}/test.repl
|
||||||
if [ "${NCMD}" = "" ]; then
|
# daterun=`date +%Y-%m-%d-%H-%M-%S`
|
||||||
echo -e "iDS-Node${nid} (${nip})\n${daterun}" > ${FOLDER}/test.repl
|
# if [ "${NCMD}" = "" ]; then
|
||||||
yes | cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl
|
# echo -e "iDS-Node${nid} (${nip})\n${daterun}" > ${FOLDER}/test.repl
|
||||||
else
|
# yes | cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl
|
||||||
${NCMD} "echo -e \"Status-Check (${NODE_HOSTNAME})\n${daterun}\" > ${FOLDER}/test.repl"
|
# else
|
||||||
yes | ${NCMD} "cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl"
|
# ${NCMD} "echo -e \"Status-Check (${NODE_HOSTNAME})\n${daterun}\" > ${FOLDER}/test.repl"
|
||||||
fi
|
# yes | ${NCMD} "cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl"
|
||||||
done
|
# fi
|
||||||
|
# done
|
||||||
|
|
||||||
echo -e "${idsST[Bold]}"; DIVIDER
|
echo -e "${idsST[Bold]}"; DIVIDER
|
||||||
echo -e "${idsCL[Yellow]} Node Service Status${idsCL[Default]}"
|
echo -e "${idsCL[Yellow]} Node Service Status${idsCL[Default]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user