summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-host.xml
blob: b3ea129a2e2abdc3ebc41c3d639c36506b21ba46 (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
36
37
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="show">
    <children>
    <node name="host">
      <properties>
        <help>Show host information</help>
      </properties>
      <children>
        <leafNode name="domain">
          <properties>
            <help>Show domain name</help>
          </properties>
          <command>/bin/domainname -d</command>
        </leafNode>

        <leafNode name="name">
          <properties>
            <help>Show host name</help>
          </properties>
          <command>/bin/hostname</command>
        </leafNode>

        <tagNode name="lookup">
          <properties>
            <help>Lookup host information for hostname|IPv4 address</help>
          </properties>
          <command>/usr/bin/host $4</command>
        </tagNode>


      </children>
    </node>

    </children>
  </node>
</interfaceDefinition>