Update nodemgmt-scripts.sh

This commit is contained in:
2019-01-27 21:52:20 -06:00
parent 15cb3de68b
commit 33082aac6b

View File

@@ -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