-
Notifications
You must be signed in to change notification settings - Fork 0
/
outage-tcpdump-wget.config
52 lines (40 loc) · 2.43 KB
/
outage-tcpdump-wget.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[DEFAULT]
user: vuva
sender = pc21.filab.uni-hannover.de
router = pc38.filab.uni-hannover.de
receiver = pc48.filab.uni-hannover.de
[clocksync]
host:%(sender)s
command: sudo killall -INT ptpd2;cd /users/vuva/Downloads/ptpd-2.3.1/src; sudo ./ptpd2 -i eth5 -s -u 10.1.4.3 -f /users/vuva/logs/ptp/ptpclient.log -a -r 4 -S /users/vuva/logs/ptp/clock.log; sleep 100;sudo killall -INT ptpd2; echo "clocks synced";
[start]
host:%(sender)s
command:killall -INT python3; python3 -m http.server;
after: {'clocksync':'clocks synced'}
[receiver]
host:%(receiver)s
command:sudo killall -INT tcpdump; sudo tcpdump dst 10.1.1.2 and src 10.1.2.2 or 10.1.3.2 -i eth5 -w ~/logs/outage/dump-receiver.pcapng -j adapter;
after: {'start':'Serving HTTP'}
[receiver-request]
host:%(receiver)s
command: sleep 10; wget 10.1.2.2:8000/%(SL_FILE)s
after: {'start':'Serving HTTP'}
[sender-tshark]
host:%(sender)s
command:sudo killall -INT tcpdump; sudo tcpdump dst 10.1.1.2 and src 10.1.2.2 or 10.1.3.2 -i any -w ~/logs/outage/dump-sender.pcapng -j adapter;
after: {'start':'Serving HTTP'}
[router]
host:%(router)s
command:killall -INT python3;sudo iptables -D FORWARD -i eth5 -j DROP; sudo iptables -D FORWARD -i eth2 -j DROP; sleep 15; python3 outage.py -ond exp -onp %(SL_ONTIME)s -offd exp -offp %(SL_OFFTIME)s -i eth2 & python3 outage.py -ond exp -onp %(SL_ONTIME)s -offd exp -offp %(SL_OFFTIME)s -i eth5;
after: {'start':'Serving HTTP'}
[cleanupRecv]
host: %(receiver)s
command:sudo killall -INT tcpdump; sudo killall -INT tshark; sudo tshark -r ~/logs/outage/dump-receiver.pcapng -l -i eth5 -T fields -e frame.number -e frame.time_epoch -e ip.src -e tcp.srcport -e ip.dst -e tcp.dstport -e ip.proto -e frame.len -e tcp.seq -e tcp.ack -e tcp.options.mptcp.rawdataseqno -e tcp.options.mptcp.rawdataack > ~/logs/outage/%(SL_EX)s-receiver-%(SL_I)s.csv ;
after: {'receiver-request':'saved'}
[cleanupRouter]
host: %(router)s
command: sleep 10; killall -INT python3;
after: {'receiver-request':'saved'}
[cleanupSender]
host: %(sender)s
command: sudo killall -INT tcpdump;sudo killall -INT tshark; killall -INT python3; sudo tshark -r ~/logs/outage/dump-sender.pcapng -l -i eth2 -i eth4 -T fields -e frame.number -e frame.time_epoch -e ip.src -e tcp.srcport -e ip.dst -e tcp.dstport -e ip.proto -e frame.len -e tcp.seq -e tcp.ack -e tcp.options.mptcp.rawdataseqno -e tcp.options.mptcp.rawdataack > ~/logs/outage/%(SL_EX)s-sender-%(SL_I)s.csv; echo "HTTP server down."
after: {'receiver-request':'saved'}