From 33082aac6bdd8a36e285a5ed4a332e39205b4854 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 27 Jan 2019 21:52:20 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index a17a80a7..bf55cab0 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -75,6 +75,11 @@ case "$1" in STA="$(tr '[:lower:]' '[:upper:]' <<< ${3:0:1})${3:1}" echo -e "${idsCL[LightGreen]}[[${SER} ${STA}ing]]${idsCL[Default]}" + for i in "${node_hosts}" + do + echo "Here: ${i}" + done + echo -en "${idsCL[Cyan]}${STA}ing Node 1...${idsCL[Default]}" ssh root@10.5.10.51 systemctl $3 $2 if [[ $(ssh root@10.5.10.51 ps -ef | grep -c ${2}) -ne 1 ]]; then