From 12ad7f54993276eebf7bae3e2720eeb10648155b Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 22 Feb 2025 11:11:24 -0600 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsmon.sh b/dsmon.sh index 2f57ad6..af4f5bf 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -404,7 +404,7 @@ RUNCMDSLOW(){ echo -e "\n${idsCL[White]}The following command will be run on all nodes:" echo -e "${idsST[Bold]}'${idsCL[LightCyan]}$(echo "${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14} ${15} ${16} ${17} ${18} ${19} ${20}" | awk '{$1=$1};1')${idsCL[White]}'${idsCL[Default]}${idsST[Reset]}\n" - while IFS= read -u 3 hostid hostname hostip hostlimits; do + while IFS= read hostid hostname hostip hostlimits; do if [ "${hostname}" != "host" ]; then echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${hostname} - $(echo ${hostip} | cut -d ";" -f1)${idsCL[Default]}${idsST[Reset]}" # ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 root@$(echo ${hostip} | cut -d ";" -f1) ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14} ${15} ${16} ${17} ${18} ${19} ${20} ${21} ${22}