Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Staff
SpeedTest
Commits
be32cce8
Commit
be32cce8
authored
11 years ago
by
Mike Smith
Browse files
Options
Download
Email Patches
Plain Diff
Improved usage info
parent
52be6686
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
3 deletions
+25
-3
README
README
+23
-2
speedtest.sh
speedtest.sh
+2
-1
No files found.
README
View file @
be32cce8
...
...
@@ -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
This diff is collapsed.
Click to expand it.
speedtest.sh
View file @
be32cce8
...
...
@@ -3,11 +3,12 @@
usage
()
{
echo
>
&2
"Usage: bash
$0
[-a CYCLES] [-m CYCLES] [-p] [-s] [-t]"
echo
-e
>
&2
"-a
\t
\t
Turn on all options. Must specify CYCLES for MTR to run"
echo
-e
>
&2
"-a
CYCLES
\t
Turn on all options. Must specify CYCLES for MTR to run"
echo
-e
>
&2
"-m CYCLES
\t
Turn on MTR and run for CYCLES"
echo
-e
>
&2
"-p
\t\t
Turn on ping option"
echo
-e
>
&2
"-s
\t\t
Turn on speedtest option"
echo
-e
>
&2
"-t
\t\t
Turn on traceroute option"
echo
-e
>
&2
"-h
\t\t
Displays this help message"
}
if
[
$#
-lt
1
]
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment