5 CASSANDRA_PASS=<%= @cassandra_pwd %>
6 CASSANDRA_IP=<%= @cassandra_ip %>
8 if [[ $(nodetool status |tail -n2 | grep -Ev "^$"a) == *"UN"* ]]; then
9 echo "exit" | cqlsh -u cassandra -p $CASSANDRA_PASS $CASSANDRA_IP > /dev/null 2>&1
11 if [[ $rc != 0 ]]; then exit $rc; fi