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 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(){