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
committeraapostoliuk <a.apostoliuk@vyos.io>2023-10-16 12:25:02 +0300
commit65911b17340a7894aba973113d83ab43964bbf99 (patch)
tree2e79ff59a712c19f37be4959303d6186e0d91a10 /op-mode-definitions/generate_tech-support_archive.xml.in
parentc4bea386c66259f642f4695f376b4c544903bc7e (diff)
downloadvyos-1x-65911b17340a7894aba973113d83ab43964bbf99.tar.gz
vyos-1x-65911b17340a7894aba973113d83ab43964bbf99.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.
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>