Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-07 13:28:08 -06:00
parent 3daae6d47d
commit 5834e79d8e

View File

@@ -104,8 +104,7 @@ STATUS() {
if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) != *"${nip}"* ]] && [ "${isreplhost}" = "false" ]; then
echo -e " ${idsST[Bold]}${idsCL[LightCyan]}iDS-Node${nid} (${nip})${idsST[Reset]}${idsCL[Default]}"
DIVIDER false green
for rcheck in "${REPL_CHECK[@]}"
do
for rcheck in "${REPL_CHECK[@]}"; do
c=0; cw=22; spc=''
spc1=${cw}-${#REPL_DESC[${rcheck}]}
timeout=`date --date='5 seconds' +%s`
@@ -200,6 +199,7 @@ STATUS-CHECK(){
if [ "${nip}" = '10.5.10.51' ] && [ ! -z ${LOCAL_SERVICES+x} ]; then isreplhost=true; else isreplhost=false; fi
if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) != *"${nip}"* ]] && [ "${isreplhost}" = "false" ]; then
for rcheck in "${REPL_CHECK[@]}"; do
timeout=`date --date='5 seconds' +%s`
checked=false
until [ "${checked}" = "" ]; do
if [ "${NCMD}" = "" ]; then