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