3 The purpose of this simulator is to mimic the PNF for benchmark purposes.
4 This variant is based on the PNF simulator and use several components.
5 The modification are focusing on the following areas:
7 - add a script configuring and governing multiple instances of PNF simualtor
8 - removing parts which are not required for benchmark purposes.
9 - add functionality which creates and maintains the ROP files
10 - add functionality to query the actual ROP files and construct VES events based on them
14 The ipstart should align to a /28 Ip address range start (e.g. 10.11.0.16, 10.11.0.32)
16 For debug purposes, you can use your own IP address as VES collector, use "ip" command to determine it.
18 Run ./setup.sh to create pre-set Python virtualenv with all required dependencies for the scripts.
20 ### Build simulator image
23 ./mass-pnf-sim.py build
26 ### Bootstrap simulator instances
29 ./mass-pnf-sim.py bootstrap --count 2 --urlves http://10.148.95.??:10000/eventListener/v7 --ipfileserver 10.148.95.??? --typefileserver sftp --ipstart 10.11.0.16
32 Note that the file creator is started at a time of the bootstrapping.
33 Stop/start will not re-launch it.
35 ### Replacing VES for test purposes
38 sudo nc -vv -l -k -p 10000
41 ### Start all bootstrapped instances
44 ./mass-pnf-sim.py start
50 ./mass-pnf-sim.py trigger
53 ### Trigger only a subset of the simulators
55 The following command will trigger 0,1,2,3:
58 ./mass-pnf-sim.py trigger-custom --triggerstart 0 --triggerend 3
61 The following command will trigger 4 and 5:
64 ./mass-pnf-sim.py trigger-custom --triggerstart 4 --triggerend 5
67 ### Stop sending PNF registration messages from simulators
70 ./mass-pnf-sim.py stop_simulator
73 ### Stop docker containers and clean bootstrapped simulators
76 ./mass-pnf-sim.py stop
77 ./mass-pnf-sim.py clean
80 ### Verbose printout from Python
83 python3 -m trace --trace --count -C . ./mass-pnf-sim.py .....
86 ### Cleaning and recovery after incorrect configuration