Update nodemgmt-scripts.sh

This commit is contained in:
2024-12-01 18:42:00 -06:00
parent 0a936ccabb
commit bf485b07dd

View File

@@ -793,26 +793,26 @@ RUN_COMMAND(){
fi
echo "NODETYPE= '${nodetype}'"
echo "RUNCMD= ${RUNCMD}"
echo "RUNCMD= '${RUNCMD}'"
# 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
# if [[ ${RUN_NODE_IP} == *"${nip}"* ]]; then NCMD=''; LH='- localhost'
# else NCMD="ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${nip}"; LH=''
# fi
# 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
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
if [[ ${RUN_NODE_IP} == *"${nip}"* ]]; then NCMD=''; LH='- localhost'
else NCMD="ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${nip}"; LH=''
fi
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(){