Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-07 10:46:58 -06:00
parent af8cb566cb
commit 5b01bb468e

View File

@@ -30,11 +30,9 @@ STATUS() {
fi
done
echo -e "${idsST[Bold]}"
DIVIDER
echo -e "${idsST[Bold]}"; DIVIDER
echo -e "${idsCL[Yellow]} Node Service Status${idsCL[Default]}"
DIVIDER
echo -e "${idsST[Reset]}"
DIVIDER; echo -e "${idsST[Reset]}"
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]}"
@@ -74,10 +72,9 @@ STATUS() {
echo
nid=`expr $nid + 1`
done
echo
DIVIDER
echo -e "${idsST[Bold]}${idsCL[Yellow]} Replication Status to Other Nodes${idsCL[Default]}"
DIVIDER true
echo -e "${idsST[Bold]}"; DIVIDER
echo -e "${idsCL[Yellow]} Replication Status to Other Nodes${idsCL[Default]}"
DIVIDER; echo -e "${idsST[Reset]}"
timeout=`date --date='20 seconds' +%s`
nid=1
for nip in "${NODE_HOSTS[@]}"