Update nodemgmt-scripts.sh
This commit is contained in:
@@ -75,6 +75,11 @@ case "$1" in
|
|||||||
STA="$(tr '[:lower:]' '[:upper:]' <<< ${3:0:1})${3:1}"
|
STA="$(tr '[:lower:]' '[:upper:]' <<< ${3:0:1})${3:1}"
|
||||||
echo -e "${idsCL[LightGreen]}[[${SER} ${STA}ing]]${idsCL[Default]}"
|
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]}"
|
echo -en "${idsCL[Cyan]}${STA}ing Node 1...${idsCL[Default]}"
|
||||||
ssh root@10.5.10.51 systemctl $3 $2
|
ssh root@10.5.10.51 systemctl $3 $2
|
||||||
if [[ $(ssh root@10.5.10.51 ps -ef | grep -c ${2}) -ne 1 ]]; then
|
if [[ $(ssh root@10.5.10.51 ps -ef | grep -c ${2}) -ne 1 ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user