Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-07 10:43:56 -06:00
parent 88f6876c96
commit 0ce0062029

View File

@@ -31,8 +31,8 @@ STATUS() {
done
echo
echo -e "${idsCL[Yellow]} Node Service Status${idsCL[Default]}"
DIVIDER
echo -e "${idsST[Bold]}${idsCL[Yellow]} Node Service Status${idsCL[Default]}"
DIVIDER true
if [ ! -z ${LOCAL_SERVICES+x} ]; then
lip=$(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1)
echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${NODE_HOSTNAME} (${lip})${idsST[Reset]}${idsCL[LightCyan]} - localhost${idsCL[Default]}"
@@ -48,8 +48,8 @@ STATUS() {
else echo -e "${idsCL[Red]}Not Running${idsCL[Default]}"
fi
done
echo
fi
echo
nid=1
for nip in "${NODE_HOSTS[@]}"
do
@@ -73,8 +73,8 @@ STATUS() {
nid=`expr $nid + 1`
done
echo
echo -e "${idsCL[Yellow]} Replication Status to Other Nodes${idsCL[Default]}"
DIVIDER
echo -e "${idsST[Bold]}${idsCL[Yellow]} Replication Status to Other Nodes${idsCL[Default]}"
DIVIDER true
timeout=`date --date='20 seconds' +%s`
nid=1
for nip in "${NODE_HOSTS[@]}"
@@ -105,8 +105,8 @@ STATUS() {
echo -e "${idsCL[Green]}Good${idsCL[Default]}"
fi
done
echo
fi
echo
nid=`expr $nid + 1`
done