Update nodemgmt-scripts.sh
This commit is contained in:
@@ -415,7 +415,9 @@ STATUS(){
|
||||
echo -e " ${idsCL[LightCyan]}${NM_NODETYPES[$NTYPE]}-Node1 (${!PH}) <--> ${idsST[Bold]}${NM_NODETYPES[$NTYPE]}-Node${nid} (${nip})${idsST[Reset]}${idsCL[Default]}"
|
||||
DIVIDER false green
|
||||
fi
|
||||
echo "checking host"
|
||||
checkhost=$(CHECK_HOST ${nip})
|
||||
echo "done"
|
||||
if [ "${checkhost}" != "false" ]; then
|
||||
if [ -f ${FOLDER}/${nip}.down ]; then
|
||||
if [ -f ${FOLDER}/${nip}.errtime ]; then
|
||||
@@ -431,6 +433,7 @@ STATUS(){
|
||||
var2=${NTYPE}_REPL_CHECK[@]
|
||||
# timeout=`date --date='20 seconds' +%s`
|
||||
for rcheck in "${!var2}"; do
|
||||
echo $rcheck
|
||||
if [ "${ST_ACTION}" != "check" ]; then
|
||||
|
||||
if [ "${ST_ACTION}" != "report" ]; then
|
||||
@@ -458,6 +461,7 @@ STATUS(){
|
||||
|
||||
checked=false
|
||||
until [ "${checked}" = "" ]; do
|
||||
echo checking
|
||||
if [ "${PH_CMD}" = "" ]; then
|
||||
ssh -q root@${nip} [[ -f ${REPL_CHECKS[${rcheck}]}/test.repl ]] && checked=`ssh root@${nip} "cat ${REPL_CHECKS[${rcheck}]}/test.repl" | diff - ${REPL_CHECKS[${rcheck}]}/test.repl`
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user