summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2015-01-20 15:48:03 +0100
committerDaniil Baturin <daniil@baturin.org>2015-01-20 15:48:03 +0100
commit97d6966083f7c0e93a392d58a7ab83ec64ad252f (patch)
tree4ea2d9ff62b01a82dca4de2dc0bd0bd922ab3b10
parent85eaf5015c42aa74cda8e839178c0448873f4ae5 (diff)
downloadvyatta-op-97d6966083f7c0e93a392d58a7ab83ec64ad252f.tar.gz
vyatta-op-97d6966083f7c0e93a392d58a7ab83ec64ad252f.zip
Bug #456: add simple CLI for iperf.
-rw-r--r--templates/monitor/bandwidth-test/accept/node.def2
-rw-r--r--templates/monitor/bandwidth-test/initiate/node.def1
-rw-r--r--templates/monitor/bandwidth-test/initiate/node.tag/node.def3
-rw-r--r--templates/monitor/bandwidth-test/node.def1
4 files changed, 7 insertions, 0 deletions
diff --git a/templates/monitor/bandwidth-test/accept/node.def b/templates/monitor/bandwidth-test/accept/node.def
new file mode 100644
index 0000000..1dc5335
--- /dev/null
+++ b/templates/monitor/bandwidth-test/accept/node.def
@@ -0,0 +1,2 @@
+help: Wait for bandwidth test connections (port TCP/5001)
+run: iperf -s
diff --git a/templates/monitor/bandwidth-test/initiate/node.def b/templates/monitor/bandwidth-test/initiate/node.def
new file mode 100644
index 0000000..af8c1bd
--- /dev/null
+++ b/templates/monitor/bandwidth-test/initiate/node.def
@@ -0,0 +1 @@
+help: Initiate a bandwidth test
diff --git a/templates/monitor/bandwidth-test/initiate/node.tag/node.def b/templates/monitor/bandwidth-test/initiate/node.tag/node.def
new file mode 100644
index 0000000..86dfaa1
--- /dev/null
+++ b/templates/monitor/bandwidth-test/initiate/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Initiate a bandwidth test to specified host (port TCP/5001)
+allowed: echo '<hostname> <x.x.x.x> <h:h:h:h:h:h:h:h>'
+run: iperf -c $5
diff --git a/templates/monitor/bandwidth-test/node.def b/templates/monitor/bandwidth-test/node.def
new file mode 100644
index 0000000..c83cb4f
--- /dev/null
+++ b/templates/monitor/bandwidth-test/node.def
@@ -0,0 +1 @@
+help: Initiate or wait for bandwidth test