Update nodemgmt-scripts.sh
This commit is contained in:
@@ -30,11 +30,9 @@ STATUS() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo -e "${idsST[Bold]}"
|
echo -e "${idsST[Bold]}"; DIVIDER
|
||||||
DIVIDER
|
|
||||||
echo -e "${idsCL[Yellow]} Node Service Status${idsCL[Default]}"
|
echo -e "${idsCL[Yellow]} Node Service Status${idsCL[Default]}"
|
||||||
DIVIDER
|
DIVIDER; echo -e "${idsST[Reset]}"
|
||||||
echo -e "${idsST[Reset]}"
|
|
||||||
if [ ! -z ${LOCAL_SERVICES+x} ]; then
|
if [ ! -z ${LOCAL_SERVICES+x} ]; then
|
||||||
lip=$(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1)
|
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]}"
|
echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${NODE_HOSTNAME} (${lip})${idsST[Reset]}${idsCL[LightCyan]} - localhost${idsCL[Default]}"
|
||||||
@@ -74,10 +72,9 @@ STATUS() {
|
|||||||
echo
|
echo
|
||||||
nid=`expr $nid + 1`
|
nid=`expr $nid + 1`
|
||||||
done
|
done
|
||||||
echo
|
echo -e "${idsST[Bold]}"; DIVIDER
|
||||||
DIVIDER
|
echo -e "${idsCL[Yellow]} Replication Status to Other Nodes${idsCL[Default]}"
|
||||||
echo -e "${idsST[Bold]}${idsCL[Yellow]} Replication Status to Other Nodes${idsCL[Default]}"
|
DIVIDER; echo -e "${idsST[Reset]}"
|
||||||
DIVIDER true
|
|
||||||
timeout=`date --date='20 seconds' +%s`
|
timeout=`date --date='20 seconds' +%s`
|
||||||
nid=1
|
nid=1
|
||||||
for nip in "${NODE_HOSTS[@]}"
|
for nip in "${NODE_HOSTS[@]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user