X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fresources_lite%2Frun.sh;fp=example%2Fdiameter%2Flauncher%2Fresources_lite%2Frun.sh;h=d837f70280f5dd8548f48e5d4848b32231234383;hb=659d6188ba2150517f42a8a61699b42eb9c5f1c7;hp=0000000000000000000000000000000000000000;hpb=429bdeb3e2390e4d314266e488c919faa39689e3;p=anna.git diff --git a/example/diameter/launcher/resources_lite/run.sh b/example/diameter/launcher/resources_lite/run.sh new file mode 100755 index 0000000..d837f70 --- /dev/null +++ b/example/diameter/launcher/resources_lite/run.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +# Diameter dictionary and endpoints: +DICTIONARY=stacks/avps_etsi.xml,stacks/avps_ietf.xml,stacks/avps_tgpp.xml,stacks/commands_baseProtocol.xml,stacks/commands_pccPS_EricssonSAPC_se.xml +SERVER=localhost:3868 +ENTITY=192.168.12.11:3868,192.168.12.21:3868 +CONNS=10 + +# Perhaps the stack is not fully defined: +KINDNESS=-ignoreErrors + +# Tracing (comment the second line if you need detailed traces): +TRACING="-trace debug" +TRACING= + +# General +EXE=./ADL-launcher + +echo +echo +PID=$(pgrep `basename $EXE`) +if [ $? -eq 0 ] +then + echo "The process '$EXE' seems to be already started (pid: $PID)." + echo "Press ENTER to continue, CTRL-C to abort ..." + read dummy +fi + +echo "Run as a (c)lient, (s)erver, (b)alancer or (d)ummy [c]:" +read option +[[ "$option" = "" ]] && option=c + +case $option in + c) $EXE -dictionary $DICTIONARY -entity $ENTITY -entityServerSessions $CONNS -diameterServerSessions 0 $KINDNESS $TRACING & + ;; + + s) $EXE -dictionary $DICTIONARY -diameterServer $SERVER -diameterServerSessions $CONNS -entityServerSessions 0 $KINDNESS $TRACING & + ;; + + b) $EXE -dictionary $DICTIONARY -entity $ENTITY -entityServerSessions $CONNS -diameterServer $SERVER -diameterServerSessions $CONNS -balance $KINDNESS $TRACING & + ;; + + d) $EXE -dictionary $DICTIONARY -entityServerSessions 0 -diameterServerSessions 0 $KINDNESS $TRACING & + ;; + + *) echo "Option '$option' not implemented !!" + ;; +esac +