summaryrefslogtreecommitdiff
path: root/templates/show/tech-support/private/brief/save
diff options
context:
space:
mode:
Diffstat (limited to 'templates/show/tech-support/private/brief/save')
-rw-r--r--templates/show/tech-support/private/brief/save/node.def7
-rw-r--r--templates/show/tech-support/private/brief/save/node.tag/node.def8
2 files changed, 15 insertions, 0 deletions
diff --git a/templates/show/tech-support/private/brief/save/node.def b/templates/show/tech-support/private/brief/save/node.def
new file mode 100644
index 0000000..d069ec2
--- /dev/null
+++ b/templates/show/tech-support/private/brief/save/node.def
@@ -0,0 +1,7 @@
+help: Save brief tech-support report (contains private information)
+run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ];
+ then
+ source ${vyatta_datadir}/vyatta-op/functions/tech-support-brief save
+ else
+ echo Must be an admin user to run this command
+ fi
diff --git a/templates/show/tech-support/private/brief/save/node.tag/node.def b/templates/show/tech-support/private/brief/save/node.tag/node.def
new file mode 100644
index 0000000..f56d02e
--- /dev/null
+++ b/templates/show/tech-support/private/brief/save/node.tag/node.def
@@ -0,0 +1,8 @@
+help: Save compressed brief tech-support report to specified path/file (contains private information)
+allowed: echo -n '<file> <scp://<user>:<passwd>@<host>/<file>> <ftp://<user>:<passwd>@<host>/<file>>'
+run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ];
+ then
+ source ${vyatta_datadir}/vyatta-op/functions/tech-support-brief save $5
+ else
+ echo Must be an admin user to run this command
+ fi