8 STD_DICTIONARY=stacks/avps_etsi.xml,stacks/avps_ietf.xml,stacks/avps_tgpp.xml,stacks/commands_baseProtocol.xml
9 APP_DICTIONARY=stacks/commands_pccPS_EricssonSAPC_se.xml
10 DICTIONARY=$STD_DICTIONARY,$APP_DICTIONARY
11 # Perhaps the stack is not fully defined:
12 KINDNESS=-ignoreErrors
14 # Communication endpoints:
15 LOCAL_STANDARD_ENDPOINT=localhost:3868
16 EXAMPLE_ENTITY_4_BALANCER=192.168.12.11:3868,192.168.12.21:3868
23 TRACING="-cntDir counters"
24 # need detailed traces ?:
25 #TRACING="$TRACING -trace debug"
44 STARTED=\`pgrep $1 2>/dev/null\`
45 [ \$? -eq 0 ] && { echo "Already started!"; echo "\$STARTED" ; exit 1 ; }
55 # $1: input option (c, s, b, d)
56 # Retuns the type of launcher logical name for the input option
58 [ "$1" = "c" ] && echo client
59 [ "$1" = "s" ] && echo server
60 [ "$1" = "b" ] && echo balancer
61 [ "$1" = "d" ] && echo dummy
71 echo "Configure a (c)lient, (s)erver, (b)alancer or (d)ummy [c]:"
73 [ "$option" = "" ] && option=c
74 tol=$(get_tol $option)
75 [ "$tol" = "" ] && _exit "Option '$option' not implemented !!"
79 ln -sf $EXE_BN $EXE_LINK
84 ENTITY=$LOCAL_STANDARD_ENDPOINT
85 createRunScript $EXE_LINK -dictionary $DICTIONARY -entity $ENTITY -entityServerSessions $CONNS -diameterServerSessions 0 $KINDNESS $TRACING &
89 SERVER=$LOCAL_STANDARD_ENDPOINT
90 createRunScript $EXE_LINK -dictionary $DICTIONARY -diameterServer $SERVER -diameterServerSessions $CONNS -entityServerSessions 0 $KINDNESS $TRACING &
94 SERVER=$LOCAL_STANDARD_ENDPOINT
95 ENTITY=$EXAMPLE_ENTITY_4_BALANCER
96 createRunScript $EXE_LINK -dictionary $DICTIONARY -entity $ENTITY -entityServerSessions $CONNS -diameterServer $SERVER -diameterServerSessions $CONNS -balance $KINDNESS $TRACING &
100 createRunScript $EXE_LINK -dictionary $DICTIONARY -entityServerSessions 0 -diameterServerSessions 0 $KINDNESS $TRACING &
105 echo "Created 'run.sh' script !"