summaryrefslogtreecommitdiff
path: root/op-mode-definitions/generate_tech-support_archive.xml.in
diff options
context:
space:
mode:
authoraapostoliuk <a.apostoliuk@vyos.io>2023-10-16 12:25:02 +0300
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-10-16 18:50:11 +0000
commiteccad99d1388fa364bb9ac7549b54b2af294f07c (patch)
tree7c934c347e165236dc535d04be45d2dc67af0393 /op-mode-definitions/generate_tech-support_archive.xml.in
parentc345f83ed46f5721757003fd4763186cfd7345ec (diff)
downloadvyos-1x-eccad99d1388fa364bb9ac7549b54b2af294f07c.tar.gz
vyos-1x-eccad99d1388fa364bb9ac7549b54b2af294f07c.zip
op-mode: T5642: 'generate tech-support archive' moved to vyos-1x
'generate tech-support archive' moved to vyos-1x. Output of 'show tech-support report' command is added to archive. The default location of the archive is moved to '/tmp'. The script is rewritten to Python. (cherry picked from commit 65911b17340a7894aba973113d83ab43964bbf99)
Diffstat (limited to 'op-mode-definitions/generate_tech-support_archive.xml.in')
-rw-r--r--op-mode-definitions/generate_tech-support_archive.xml.in29
1 files changed, 29 insertions, 0 deletions
diff --git a/op-mode-definitions/generate_tech-support_archive.xml.in b/op-mode-definitions/generate_tech-support_archive.xml.in
new file mode 100644
index 000000000..e95be3e28
--- /dev/null
+++ b/op-mode-definitions/generate_tech-support_archive.xml.in
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="generate">
+ <children>
+ <node name="tech-support">
+ <properties>
+ <help>Generate tech support info</help>
+ </properties>
+ <children>
+ <node name="archive">
+ <properties>
+ <help>Generate tech support archive</help>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/generate_tech-support_archive.py</command>
+ </node>
+ <tagNode name="archive">
+ <properties>
+ <help>Generate tech support archive to defined location</help>
+ <completionHelp>
+ <list> &lt;file&gt; &lt;scp://user:passwd@host&gt; &lt;ftp://user:passwd@host&gt;</list>
+ </completionHelp>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/generate_tech-support_archive.py $4</command>
+ </tagNode>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>