Update nodemgmt-scripts.sh
This commit is contained in:
@@ -790,24 +790,28 @@ RUN_COMMAND(){
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
for NTYPE in "${NTS[@]}"; do
|
|
||||||
echo -e "${idsST[Bold]}"; DIVIDER
|
|
||||||
echo -e "${idsCL[Yellow]} ${NM_NODETYPES[$NTYPE]}-Nodes to run command { \`${RUNCMD}\` }${idsCL[Default]}"
|
|
||||||
DIVIDER; echo -e "${idsST[Reset]}"
|
|
||||||
|
|
||||||
for nip in "${!NT_HOSTS}"; do
|
echo "NODETYPE= 'c{nodetype}'"
|
||||||
if [[ ${RUN_NODE_IP} == *"${nip}"* ]]; then NCMD=''; LH='- localhost'
|
echo "RUNCMD= '${RUNCMD}'"
|
||||||
else NCMD="ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${nip}"; LH=''
|
|
||||||
fi
|
# for NTYPE in "${NTS[@]}"; do
|
||||||
echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${NM_HOSTNAMES[${nip}]}[${nip}]${idsST[Reset]}${idsCL[LightCyan]} ${idsCL[LightYellow]}${LH}${idsCL[Default]}"
|
# echo -e "${idsST[Bold]}"; DIVIDER
|
||||||
DIVIDER false green
|
# echo -e "${idsCL[Yellow]} ${NM_NODETYPES[$NTYPE]}-Nodes to run command { \`${RUNCMD}\` }${idsCL[Default]}"
|
||||||
echo "Running command: ${NCMD} ${RUNCMD}"
|
# DIVIDER; echo -e "${idsST[Reset]}"
|
||||||
#${NCMD} "${RUNCMD}"
|
#
|
||||||
DIVIDER false green
|
# for nip in "${!NT_HOSTS}"; do
|
||||||
echo
|
# if [[ ${RUN_NODE_IP} == *"${nip}"* ]]; then NCMD=''; LH='- localhost'
|
||||||
done
|
# else NCMD="ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${nip}"; LH=''
|
||||||
echo
|
# fi
|
||||||
done
|
# echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${NM_HOSTNAMES[${nip}]}[${nip}]${idsST[Reset]}${idsCL[LightCyan]} ${idsCL[LightYellow]}${LH}${idsCL[Default]}"
|
||||||
|
# DIVIDER false green
|
||||||
|
# echo "Running command: ${NCMD} ${RUNCMD}"
|
||||||
|
# #${NCMD} "${RUNCMD}"
|
||||||
|
# DIVIDER false green
|
||||||
|
# echo
|
||||||
|
# done
|
||||||
|
# echo
|
||||||
|
# done
|
||||||
}
|
}
|
||||||
|
|
||||||
DOWNLIST(){
|
DOWNLIST(){
|
||||||
|
|||||||
Reference in New Issue
Block a user