summaryrefslogtreecommitdiff
path: root/op-mode-definitions/monitor-bandwidth-test.xml
blob: 5959e05f211a4e34e5418f3e17b8cfab3262865a (plain)
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
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="monitor">
    <children>
      <node name="bandwidth-test">
        <properties>
          <help>Initiate or wait for bandwidth test</help>
        </properties>
        <children>
          <leafNode name="accept">
            <properties>
              <help>Wait for bandwidth test connections (port TCP/5001)</help>
            </properties>
            <command>/usr/bin/iperf -V -s</command>
          </leafNode>
          <tagNode name="initiate">
            <properties>
              <help>Initiate a bandwidth test to specified host (port TCP/5001)</help>
              <completionHelp>
                <list>&lt;hostname&gt; &lt;x.x.x.x&gt; &lt;h:h:h:h:h:h:h:h&gt;</list>
              </completionHelp>
            </properties>
            <command>iperf -c $4</command>
          </tagNode>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>