X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fdeployments%2Fst-client%2FcheckStatus.sh;h=7fb60cd4fdc53eddea26a2fae4c0b3acfa929216;hb=1e8a5bba6feb7cff4d72164a43ac9924cf6b088c;hp=7bbdb3bb59a507ddc4c9100bd1109f7866f07b66;hpb=f6a2bc0692ff9b4eb3cf35b3458acc3b527a5f66;p=anna.git diff --git a/example/diameter/launcher/deployments/st-client/checkStatus.sh b/example/diameter/launcher/deployments/st-client/checkStatus.sh index 7bbdb3b..7fb60cd 100755 --- a/example/diameter/launcher/deployments/st-client/checkStatus.sh +++ b/example/diameter/launcher/deployments/st-client/checkStatus.sh @@ -5,10 +5,16 @@ ADML_INSTANCES=`cat .st_conf_adml_instances 2>/dev/null` RESULT_CODE=0 cd $(dirname $0) -#[ -z "$ADML_CONNECTIONS" -o -z "$ADML_INSTANCES" ] && { echo "Miss configuration. Run ./configure.sh" ; exit 3 ; } +if [ -z "$ADML_CONNECTIONS" -o -z "$ADML_INSTANCES" ] +then + echo + echo "Run './configure.sh' first !" + echo + exit 3 +fi echo -n "Checking instances ... " -ADML_INSTANCES_ALIVE=$(pgrep ADML- | wc -l) +ADML_INSTANCES_ALIVE=$(pgrep "ADML-[0-9]" | wc -l) echo -n "$ADML_INSTANCES_ALIVE instances alive" if [ $ADML_INSTANCES_ALIVE -lt $ADML_INSTANCES ] then @@ -31,5 +37,10 @@ else echo fi +echo +echo "Check CEAs doing something like this:" +echo " ./operation.sh show-oam | grep CEAReceived | grep AccumulatedAmount > ceas.txt; cat ceas.txt | cut -d\\\" -f12 | paste -sd+ | bc" +echo + exit $RESULT_CODE