set(VERSION_MINOR 0)
set(VERSION_PATCH 0)
+# Dynamic libraries not linked to build tree:
+set(CMAKE_SKIP_RPATH TRUE)
+
# Build type:
if(NOT CMAKE_BUILD_TYPE)
message(WARNING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel.")
<message version="1" name="CC-Request" application-id="16777238" hop-by-hop-id="3" end-to-end-id="120858624">
+ <avp name="Session-Id" data="111110000000;BAT004;ggsnNodeHostname.nodeHostRealm.com;9020000000"/>
+ <avp name="Origin-Host" data="ggsnNodeHostname.nodeHostRealm.com"/>
+ <avp name="Origin-Realm" data="nodeHostRealm.com"/>
+<!--
<avp name="Session-Id" data="111110000000;BAT004;esmdx0900.gxrel10plusrealm.com;9020000000"/>
<avp name="Origin-Host" data="esmdx0900.gxrel10plusrealm.com"/>
<avp name="Origin-Realm" data="gxrel10plusrealm.com"/>
+-->
<avp name="Destination-Realm" data="operatorRealm.com"/>
<avp name="Origin-State-Id" data="1"/>
<avp name="CC-Request-Number" data="0"/>
<message version="1" name="CC-Request" application-id="16777238" hop-by-hop-id="4" end-to-end-id="920291330">
+ <avp name="Session-Id" data="111110000000;BAT004;ggsnNodeHostname.nodeHostRealm.com;9020000000"/>
+ <avp name="Origin-Host" data="ggsnNodeHostname.nodeHostRealm.com"/>
+ <avp name="Origin-Realm" data="nodeHostRealm.com"/>
+<!--
<avp name="Session-Id" data="111110000000;BAT004;esmdx0900.gxrel10plusrealm.com;9020000000"/>
<avp name="Origin-Host" data="esmdx0900.gxrel10plusrealm.com"/>
<avp name="Origin-Realm" data="gxrel10plusrealm.com"/>
+-->
<avp name="Destination-Realm" data="operatorRealm.com"/>
<avp name="Origin-State-Id" data="1"/>
<avp name="CC-Request-Number" data="1"/>
# Dynamic libs:
cp -r $LIB_DIR/dynamic/launcher $DPATH/dynlibs
+cp $LIB_DIR/libanna_testing_shared.so $DPATH/dynlibs
# Get stuff from leaf directories:
cd $LIB_DIR/dynamic/launcher
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 ; }
+
echo -n "Checking instances ... "
ADML_INSTANCES_ALIVE=$(pgrep ADML- | wc -l)
echo -n "$ADML_INSTANCES_ALIVE instances alive"
-if [ $ADML_INSTANCES_ALIVE -ne $ADML_INSTANCES ]
+if [ $ADML_INSTANCES_ALIVE -lt $ADML_INSTANCES ]
then
echo " ! (expected $ADML_INSTANCES configured)"
RESULT_CODE=1
echo
fi
+cmd="netstat -a | grep :diameter | grep ESTABLISHED | wc -l"
echo -n "Checking connections ... "
-ADML_CONNECTIONS_ALIVE=$(netstat -a | grep :diameter | grep ESTABLISHED | wc -l)
+ADML_CONNECTIONS_ALIVE=$(eval $cmd)
ADML_TOTAL_CONNECTIONS=$((ADML_CONNECTIONS*ADML_INSTANCES))
-echo -n "$ADML_CONNECTIONS_ALIVE connections established"
+echo -n "$ADML_CONNECTIONS_ALIVE connections established (using '$cmd')"
if [ $ADML_CONNECTIONS_ALIVE -ne $ADML_TOTAL_CONNECTIONS ]
then
echo " ! (expected $ADML_TOTAL_CONNECTIONS configured)"
}
advice_to_squeeze_idle_cpu () {
- local idle=$(top -b -d 0.1 -n 2 | grep 'Cpu(s):'| tail -1 | awk '{print $8}' | sed 's/,/./')
+ local idle=$(top -b -d 1 -n 2 | grep 'Cpu(s):'| tail -1 | awk '{print $8}' | sed 's/,/./')
sleep 10
echo
echo "Idle cpu now: $idle. Check the system CPU with top. If is not overcommited, consider"