projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix local server for multiple applications
[anna.git]
/
example
/
diameter
/
launcher
/
deployments
/
st-client
/
checkStatus.sh
diff --git
a/example/diameter/launcher/deployments/st-client/checkStatus.sh
b/example/diameter/launcher/deployments/st-client/checkStatus.sh
index
7bbdb3b
..
7fb60cd
100755
(executable)
--- 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)
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 ... "
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
echo -n "$ADML_INSTANCES_ALIVE instances alive"
if [ $ADML_INSTANCES_ALIVE -lt $ADML_INSTANCES ]
then
@@
-31,5
+37,10
@@
else
echo
fi
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
exit $RESULT_CODE