15 lines
352 B
Bash
Executable File
15 lines
352 B
Bash
Executable File
#!/bin/bash
|
|
|
|
while : ; do
|
|
./switch.sh 1
|
|
#sleep 480
|
|
sleep 120
|
|
echo "$(date +'%Y-%m-%d %H:%M:%S') Pods State not in running state"
|
|
oc get pods -n test-richph | grep -v "Running"
|
|
./switch.sh 2
|
|
# sleep 480
|
|
sleep 120
|
|
echo "$(date +'%Y-%m-%d %H:%M:%S') Pods State not in running state"
|
|
oc get pods -n test-richph | grep -v "Running"
|
|
done
|