summaryrefslogtreecommitdiff
path: root/op-mode-definitions/monitor-command.xml.in
blob: 31c68f029868d669df6876b782f4437028ab3b67 (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
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="monitor">
    <children>
      <tagNode name="command">
        <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>
      </tagNode>
      <node name="command">
        <children>
          <node name="diff">
            <properties>
              <help>Show differences during each run</help>
            </properties>
          </node>
          <tagNode name="diff">
            <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>
          </tagNode>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>