summaryrefslogtreecommitdiff
path: root/op-mode-definitions/monitor-command.xml.in
blob: ba242386e655399f3e51a0a71bd7d03b1d8ad61c (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
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="monitor">
    <children>
      <node name="command">
        <properties>
          <help>Monitor operational mode command output</help>
        </properties>
        <children>
          <virtualTagNode>
            <properties>
              <help>Monitor operational mode command (refreshes every 2 seconds)</help>
            </properties>
            <command>watch --no-title ${vyos_op_scripts_dir}/vyos-op-cmd-wrapper.sh ${@:3}</command>
          </virtualTagNode>
          <node name="diff">
            <properties>
              <help>Show differences during each run</help>
            </properties>
            <children>
              <virtualTagNode>
                <properties>
                  <help>Monitor operational mode command (refreshes every 2 seconds)</help>
                </properties>
                <command>watch --no-title --differences ${vyos_op_scripts_dir}/vyos-op-cmd-wrapper.sh ${@:4}</command>
              </virtualTagNode>
            </children>
          </node>
       </children>
      </node>
    </children>
  </node>
</interfaceDefinition>