3 # Diameter dictionary and endpoints:
4 DICTIONARY=stacks/avps_etsi.xml,stacks/avps_ietf.xml,stacks/avps_tgpp.xml,stacks/commands_baseProtocol.xml,stacks/commands_pccPS_EricssonSAPC_se.xml
6 ENTITY=192.168.12.11:3868,192.168.12.21:3868
9 # Perhaps the stack is not fully defined:
10 KINDNESS=-ignoreErrors
12 # Tracing (comment the second line if you need detailed traces):
13 TRACING="-trace debug"
21 PID=$(pgrep `basename $EXE`)
24 echo "The process '$EXE' seems to be already started (pid: $PID)."
25 echo "Press ENTER to continue, CTRL-C to abort ..."
29 echo "Run as a (c)lient, (s)erver, (b)alancer or (d)ummy [c]:"
31 [[ "$option" = "" ]] && option=c
34 c) $EXE -dictionary $DICTIONARY -entity $ENTITY -entityServerSessions $CONNS -diameterServerSessions 0 $KINDNESS $TRACING &
37 s) $EXE -dictionary $DICTIONARY -diameterServer $SERVER -diameterServerSessions $CONNS -entityServerSessions 0 $KINDNESS $TRACING &
40 b) $EXE -dictionary $DICTIONARY -entity $ENTITY -entityServerSessions $CONNS -diameterServer $SERVER -diameterServerSessions $CONNS -balance $KINDNESS $TRACING &
43 d) $EXE -dictionary $DICTIONARY -entityServerSessions 0 -diameterServerSessions 0 $KINDNESS $TRACING &
46 *) echo "Option '$option' not implemented !!"