summaryrefslogtreecommitdiff
path: root/op-mode-definitions/telnet.xml.in
blob: 2cacc6a2611cebf1bf5755eb8f95a825b297fbfd (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
30
31
32
33
34
35
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="execute">
    <children>
      <node name="telnet">
        <properties>
          <help>Telnet to a node</help>
        </properties>
        <children>
          <tagNode name="to">
            <properties>
              <help>Telnet to a host</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>/usr/bin/telnet $4</command>
            <children>
              <tagNode name="port">
                <properties>
                  <help>Telnet to a host:port</help>
                  <completionHelp>
                    <list>&lt;0-65535&gt;</list>
                  </completionHelp>
                </properties>
                <command>/usr/bin/telnet $4 $6</command>
              </tagNode>
            </children>
          </tagNode>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>