summaryrefslogtreecommitdiff
path: root/op-mode-definitions/monitor-command.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-09-01 07:43:18 +0200
committerChristian Breunig <christian@breunig.cc>2023-09-01 17:08:06 +0200
commitb92515dc815959a4efe05e33b0bb8ee9130c40e4 (patch)
tree849b95a040d29a1935915747f9bc07c52f68fb3b /op-mode-definitions/monitor-command.xml.in
parent18a6163ed2e0bbbc2924f893e6954a9eba4470b1 (diff)
downloadvyos-1x-b92515dc815959a4efe05e33b0bb8ee9130c40e4.tar.gz
vyos-1x-b92515dc815959a4efe05e33b0bb8ee9130c40e4.zip
T2546: re-add "monitor command" op-mode command with a new "diff" option as well
Diffstat (limited to 'op-mode-definitions/monitor-command.xml.in')
-rw-r--r--op-mode-definitions/monitor-command.xml.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/op-mode-definitions/monitor-command.xml.in b/op-mode-definitions/monitor-command.xml.in
new file mode 100644
index 000000000..31c68f029
--- /dev/null
+++ b/op-mode-definitions/monitor-command.xml.in
@@ -0,0 +1,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>