From 97d6966083f7c0e93a392d58a7ab83ec64ad252f Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Tue, 20 Jan 2015 15:48:03 +0100 Subject: Bug #456: add simple CLI for iperf. --- templates/monitor/bandwidth-test/accept/node.def | 2 ++ templates/monitor/bandwidth-test/initiate/node.def | 1 + templates/monitor/bandwidth-test/initiate/node.tag/node.def | 3 +++ templates/monitor/bandwidth-test/node.def | 1 + 4 files changed, 7 insertions(+) create mode 100644 templates/monitor/bandwidth-test/accept/node.def create mode 100644 templates/monitor/bandwidth-test/initiate/node.def create mode 100644 templates/monitor/bandwidth-test/initiate/node.tag/node.def create mode 100644 templates/monitor/bandwidth-test/node.def 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 ' ' +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 -- cgit v1.2.3