#!/bin/bash# loop until the VM starts responding to pingswhile ! $(relx_nodetool "ping">/dev/null)do
sleep 1done# loop until the name provided as argument gets# registeredwhiletruedoif["$(relx_nodetool eval"whereis($1).")" !="undefined"]thenbreakfidone