Commit be32cce8 authored by Mike Smith's avatar Mike Smith
Browse files

Improved usage info

parent 52be6686
......@@ -2,8 +2,29 @@ To run:
wget -N https://git.sphere.ly/staff/speedtest/raw/master/speedtest.sh&&bash speedtest.sh [-a CYCLES] [-m CYCLES] [-p] [-s] [-t]
Options:
-a Turn on all options. Must specify CYCLES for MTR to run
-a CYCLES Turn on all options. Must specify CYCLES for MTR to run
-m CYCLES Turn on MTR and run for CYCLES
-p Turn on ping option
-s Turn on speedtest option
-t Turn on traceroute option
\ No newline at end of file
-t Turn on traceroute option
-h Displays this help message
You can run with any combination of the -m, -p, -s, and -t flags as needed, or simply run with the -a flag to run all options.
##### Examples #####
Run ping, traceroute, speedtest, and MTR with 10 cycles:
wget -N https://git.sphere.ly/staff/speedtest/raw/master/speedtest.sh&&bash speedtest.sh -a 10
Run only ping:
wget -N https://git.sphere.ly/staff/speedtest/raw/master/speedtest.sh&&bash speedtest.sh -p
Run only MTR with 25 cycles:
wget -N https://git.sphere.ly/staff/speedtest/raw/master/speedtest.sh&&bash speedtest.sh -m 25
Run ping and speedtest:
wget -N https://git.sphere.ly/staff/speedtest/raw/master/speedtest.sh&&bash speedtest.sh -p -s
Run speedtest and MTR with 15 cycles:
wget -N https://git.sphere.ly/staff/speedtest/raw/master/speedtest.sh&&bash speedtest.sh -s -m 15
\ No newline at end of file
......@@ -3,11 +3,12 @@
usage ()
{
echo >&2 "Usage: bash $0 [-a CYCLES] [-m CYCLES] [-p] [-s] [-t]"
echo -e >&2 "-a\t\tTurn on all options. Must specify CYCLES for MTR to run"
echo -e >&2 "-a CYCLES\tTurn on all options. Must specify CYCLES for MTR to run"
echo -e >&2 "-m CYCLES\tTurn on MTR and run for CYCLES"
echo -e >&2 "-p\t\tTurn on ping option"
echo -e >&2 "-s\t\tTurn on speedtest option"
echo -e >&2 "-t\t\tTurn on traceroute option"
echo -e >&2 "-h\t\tDisplays this help message"
}
if [ $# -lt 1 ]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment