diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 56cb2047..ea3a9107 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -790,24 +790,28 @@ RUN_COMMAND(){ exit 1 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 - 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 + + echo "NODETYPE= 'c{nodetype}'" + 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 } DOWNLIST(){