Update nodemgmt-scripts.sh
This commit is contained in:
@@ -765,11 +765,11 @@ MAINTENANCE_MODE(){
|
||||
else
|
||||
echo -e "${idsCL[LightYellow]} ${NM_NODETYPES[$NTYPE]}-Node Service Status${idsCL[Default]}"
|
||||
fi
|
||||
DIVIDER . lightYellow; echo -en "${idsST[Reset]}"
|
||||
DIVIDER . lightYellow 52; echo -en "${idsST[Reset]}"
|
||||
fi
|
||||
for nip in "${!hosts}"; do
|
||||
echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${NM_HOSTNAMES[${nip}]} [${nip}]${idsST[Reset]}${idsCL[Default]}"
|
||||
DIVIDER false lightCyan
|
||||
DIVIDER false lightCyan 52
|
||||
|
||||
|
||||
########################
|
||||
@@ -818,15 +818,15 @@ MAINTENANCE_MODE(){
|
||||
|
||||
if ([ "${STATUS_ACTION}" == "repl" ] || [ "${STATUS_ACTION}" == "" ]) && [ ! -z ${!repls+x} ]; then
|
||||
if [ "${MM_ACTION}" != "check" ]; then
|
||||
echo -e "${idsCL[Green]}${NM_NODETYPES[${NTYPE}]} Replication Check(s)${idsCL[Default]}"
|
||||
DIVIDER . green 52
|
||||
echo -e "${idsCL[LightCyan]} ${NM_NODETYPES[${NTYPE}]} Replication Check(s)${idsCL[Default]}"
|
||||
DIVIDER . lightCyan 52
|
||||
fi
|
||||
PH=${NTYPE}_HOSTS[0]
|
||||
PH_CMD="ssh root@${!PH}"
|
||||
var2=${NTYPE}_HOSTS[@]
|
||||
for nip in "${!hosts}"; do
|
||||
echo -e " ${idsCL[LightCyan]}${NM_HOSTNAMES[${!PH}]}[${!PH}] <--> ${idsST[Bold]}${NM_HOSTNAMES[${nip}]}[${nip}]${idsST[Reset]}${idsCL[Default]}"
|
||||
DIVIDER false green
|
||||
DIVIDER . lightCyan 52
|
||||
for rcheck in "${!repls}"; do
|
||||
if [ ${item_number} -lt 10 ]; then isel=" ${item_number})"; elif [ ${item_number} -lt 100 ]; then isel=" ${item_number})"; else isel=" ${item_number})"; fi
|
||||
c=0; spc=''; spc1=`expr ${PRI_CW} - ${#NM_REPL_DESC[${rcheck}]}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||
|
||||
Reference in New Issue
Block a user