-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhelp.py
44 lines (31 loc) · 847 Bytes
/
help.py
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
import sys
def printhelp():
print """Usage (as root): python %s [opts]
opts:
-n number
Number of hosts, default 10
-t time
Amount of time to run, default 10
-r rate
Shape links to constant rate, default 100mbit
-o file
Output from tests get written to file
default: results-$n-$t.html
-d
Start the hosts, configure the network and exit
--dryrun
Just print the commands
--test
Which test to run;
Default: none
Available: iperf
--stop
Stop the containers and bring down the network
-h,--help
Print this help
--tcpdump
Run tcpdump on all hosts (not available now)
--cpulimit x%%
Limit each host to x%% of the CPU
Default: no limit, just that all hosts have equal priority
""" % (sys.argv[0])