diff options
Diffstat (limited to 'templates')
28 files changed, 0 insertions, 172 deletions
diff --git a/templates/delete/log/file/node.def b/templates/delete/log/file/node.def deleted file mode 100644 index 96d455d..0000000 --- a/templates/delete/log/file/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Delete the specified log file diff --git a/templates/delete/log/file/node.tag/node.def b/templates/delete/log/file/node.tag/node.def deleted file mode 100644 index ce4a4f7..0000000 --- a/templates/delete/log/file/node.tag/node.def +++ /dev/null @@ -1,5 +0,0 @@ -help: Delete the specified log file -allowed: local -a array ; - array=( /var/log/user/* ) ; - echo -n ${array[@]##*/} -run: sudo ${vyatta_bindir}/sudo-users/vyatta-delete-log-file.sh "$4" diff --git a/templates/delete/log/node.def b/templates/delete/log/node.def deleted file mode 100644 index badd128..0000000 --- a/templates/delete/log/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Delete a log file diff --git a/templates/release/dhcp/interface/node.tag/node.def b/templates/release/dhcp/interface/node.tag/node.def index f483278..3f6831c 100644 --- a/templates/release/dhcp/interface/node.tag/node.def +++ b/templates/release/dhcp/interface/node.tag/node.def @@ -1,3 +1,2 @@ help: Release DHCP IP address lease for specified interface -allowed: /opt/vyatta/bin/show-dhcp-leases.pl run: sudo /opt/vyatta/bin/sudo-users/vyatta-interfaces.pl --dhcp release --dev "$4" diff --git a/templates/show/remote-config/openvpn/node.def b/templates/show/remote-config/openvpn/node.def deleted file mode 100644 index d417cb6..0000000 --- a/templates/show/remote-config/openvpn/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Show remote side config for OpenVPN diff --git a/templates/show/remote-config/openvpn/node.tag/node.def b/templates/show/remote-config/openvpn/node.tag/node.def deleted file mode 100644 index afb8cfb..0000000 --- a/templates/show/remote-config/openvpn/node.tag/node.def +++ /dev/null @@ -1,5 +0,0 @@ -help: Show remote side OpenVPN config - -allowed: local -a array ; - eval "array=( $(cli-shell-api listEffectiveNodes interfaces openvpn) )" ; - echo -n '<vtunN>' ${array[@]##*/} diff --git a/templates/show/remote-config/openvpn/node.tag/remote-platform/node.def b/templates/show/remote-config/openvpn/node.tag/remote-platform/node.def deleted file mode 100644 index 15502c9..0000000 --- a/templates/show/remote-config/openvpn/node.tag/remote-platform/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Show remote side OpenVPN config for specified platform diff --git a/templates/show/remote-config/openvpn/node.tag/remote-platform/node.tag/node.def b/templates/show/remote-config/openvpn/node.tag/remote-platform/node.tag/node.def deleted file mode 100644 index 66f334c..0000000 --- a/templates/show/remote-config/openvpn/node.tag/remote-platform/node.tag/node.def +++ /dev/null @@ -1,9 +0,0 @@ -help: Show remote side OpenVPN config for specified platform -allowed: echo -n "vyos openvpn" - -run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ]; - then - sudo ${vyatta_sbindir}/vyos-openvpn-remoteconfig.pl $4 $6 - else - echo Must be an admin user to run this command. - fi diff --git a/templates/show/tech-support/brief/node.def b/templates/show/tech-support/brief/node.def deleted file mode 100644 index 9a4a624..0000000 --- a/templates/show/tech-support/brief/node.def +++ /dev/null @@ -1,7 +0,0 @@ -help: Show brief tech-support report (private information removed) -run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ]; - then - source ${vyatta_datadir}/vyatta-op/functions/tech-support-brief | strip-private - else - echo Must be an admin user to run this command - fi diff --git a/templates/show/tech-support/brief/save-uncompressed/node.def b/templates/show/tech-support/brief/save-uncompressed/node.def deleted file mode 100644 index 84b4ed0..0000000 --- a/templates/show/tech-support/brief/save-uncompressed/node.def +++ /dev/null @@ -1,7 +0,0 @@ -help: Save uncompressed brief tech-support report (private information removed) -run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ]; - then - source ${vyatta_datadir}/vyatta-op/functions/tech-support-brief save-uncompressed | strip-private - else - echo Must be an admin user to run this command - fi diff --git a/templates/show/tech-support/brief/save-uncompressed/node.tag/node.def b/templates/show/tech-support/brief/save-uncompressed/node.tag/node.def deleted file mode 100644 index dad3949..0000000 --- a/templates/show/tech-support/brief/save-uncompressed/node.tag/node.def +++ /dev/null @@ -1,8 +0,0 @@ -help: Save uncompressed brief tech-support report to specified path/file (private information removed) -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-uncompressed $5 | strip-private - else - echo Must be an admin user to run this command - fi diff --git a/templates/show/tech-support/brief/save/node.def b/templates/show/tech-support/brief/save/node.def deleted file mode 100644 index 2f8a561..0000000 --- a/templates/show/tech-support/brief/save/node.def +++ /dev/null @@ -1,7 +0,0 @@ -help: Save brief tech-support report (private information removed) -run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ]; - then - source ${vyatta_datadir}/vyatta-op/functions/tech-support-brief save | strip-private - else - echo Must be an admin user to run this command - fi diff --git a/templates/show/tech-support/brief/save/node.tag/node.def b/templates/show/tech-support/brief/save/node.tag/node.def deleted file mode 100644 index f0cfe4a..0000000 --- a/templates/show/tech-support/brief/save/node.tag/node.def +++ /dev/null @@ -1,8 +0,0 @@ -help: Save compressed brief tech-support report to specified path/file (private information removed) -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 | strip-private - else - echo Must be an admin user to run this command - fi diff --git a/templates/show/tech-support/node.def b/templates/show/tech-support/node.def deleted file mode 100644 index c211e90..0000000 --- a/templates/show/tech-support/node.def +++ /dev/null @@ -1,7 +0,0 @@ -help: Show consolidated tech-support report (private information removed) -run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ]; - then - source ${vyatta_datadir}/vyatta-op/functions/tech-support | strip-private - else - echo Must be an admin user to run this command - fi diff --git a/templates/show/tech-support/private/brief/node.def b/templates/show/tech-support/private/brief/node.def deleted file mode 100644 index cc06ccf..0000000 --- a/templates/show/tech-support/private/brief/node.def +++ /dev/null @@ -1,7 +0,0 @@ -help: Show 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 - else - echo Must be an admin user to run this command - fi diff --git a/templates/show/tech-support/private/brief/save-uncompressed/node.def b/templates/show/tech-support/private/brief/save-uncompressed/node.def deleted file mode 100644 index 9292428..0000000 --- a/templates/show/tech-support/private/brief/save-uncompressed/node.def +++ /dev/null @@ -1,7 +0,0 @@ -help: Save uncompressed 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-uncompressed - else - echo Must be an admin user to run this command - fi diff --git a/templates/show/tech-support/private/brief/save-uncompressed/node.tag/node.def b/templates/show/tech-support/private/brief/save-uncompressed/node.tag/node.def deleted file mode 100644 index 0976413..0000000 --- a/templates/show/tech-support/private/brief/save-uncompressed/node.tag/node.def +++ /dev/null @@ -1,8 +0,0 @@ -help: Save uncompressed 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-uncompressed $5 - else - echo Must be an admin user to run this command - fi diff --git a/templates/show/tech-support/private/brief/save/node.def b/templates/show/tech-support/private/brief/save/node.def deleted file mode 100644 index d069ec2..0000000 --- a/templates/show/tech-support/private/brief/save/node.def +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index f56d02e..0000000 --- a/templates/show/tech-support/private/brief/save/node.tag/node.def +++ /dev/null @@ -1,8 +0,0 @@ -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 diff --git a/templates/show/tech-support/private/node.def b/templates/show/tech-support/private/node.def deleted file mode 100644 index 32b4c15..0000000 --- a/templates/show/tech-support/private/node.def +++ /dev/null @@ -1,7 +0,0 @@ -help: Show consolidated 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 - else - echo Must be an admin user to run this command - fi diff --git a/templates/show/tech-support/private/save-uncompressed/node.def b/templates/show/tech-support/private/save-uncompressed/node.def deleted file mode 100644 index 424e78a..0000000 --- a/templates/show/tech-support/private/save-uncompressed/node.def +++ /dev/null @@ -1,7 +0,0 @@ -help: Save consolidated tech-support report uncompressed (contains private information) -run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ]; - then - source ${vyatta_datadir}/vyatta-op/functions/tech-support save-uncompressed - else - echo Must be an admin user to run this command. - fi diff --git a/templates/show/tech-support/private/save-uncompressed/node.tag/node.def b/templates/show/tech-support/private/save-uncompressed/node.tag/node.def deleted file mode 100644 index f2f7572..0000000 --- a/templates/show/tech-support/private/save-uncompressed/node.tag/node.def +++ /dev/null @@ -1,8 +0,0 @@ -help: Save uncompressed 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 save-uncompressed $4 - else - echo Must be an admin user to run this command - fi diff --git a/templates/show/tech-support/private/save/node.def b/templates/show/tech-support/private/save/node.def deleted file mode 100644 index 87819f6..0000000 --- a/templates/show/tech-support/private/save/node.def +++ /dev/null @@ -1,7 +0,0 @@ -help: Save consolidated 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 save - else - echo Must be an admin user to run this command - fi diff --git a/templates/show/tech-support/private/save/node.tag/node.def b/templates/show/tech-support/private/save/node.tag/node.def deleted file mode 100644 index 5a7b500..0000000 --- a/templates/show/tech-support/private/save/node.tag/node.def +++ /dev/null @@ -1,8 +0,0 @@ -help: Save compressed tech-support report to the 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 save $4 - else - echo Must be an admin user to run this command - fi diff --git a/templates/show/tech-support/save-uncompressed/node.def b/templates/show/tech-support/save-uncompressed/node.def deleted file mode 100644 index 4d828f1..0000000 --- a/templates/show/tech-support/save-uncompressed/node.def +++ /dev/null @@ -1,7 +0,0 @@ -help: Save consolidated tech-support report uncompressed (private information removed) -run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ]; - then - source ${vyatta_datadir}/vyatta-op/functions/tech-support save-uncompressed | strip-private - else - echo Must be an admin user to run this command. - fi diff --git a/templates/show/tech-support/save-uncompressed/node.tag/node.def b/templates/show/tech-support/save-uncompressed/node.tag/node.def deleted file mode 100644 index 4006afe..0000000 --- a/templates/show/tech-support/save-uncompressed/node.tag/node.def +++ /dev/null @@ -1,8 +0,0 @@ -help: Save uncompressed tech-support report to specified path/file (private information removed) -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 save-uncompressed $4 | strip-private - else - echo Must be an admin user to run this command - fi diff --git a/templates/show/tech-support/save/node.def b/templates/show/tech-support/save/node.def deleted file mode 100644 index ee1a2f1..0000000 --- a/templates/show/tech-support/save/node.def +++ /dev/null @@ -1,7 +0,0 @@ -help: Save consolidated tech-support report (private information removed) -run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ]; - then - source ${vyatta_datadir}/vyatta-op/functions/tech-support save | strip-private - else - echo Must be an admin user to run this command - fi diff --git a/templates/show/tech-support/save/node.tag/node.def b/templates/show/tech-support/save/node.tag/node.def deleted file mode 100644 index 675418b..0000000 --- a/templates/show/tech-support/save/node.tag/node.def +++ /dev/null @@ -1,8 +0,0 @@ -help: Save compressed tech-support report to the specified path/file (private information removed) -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 save $4 | strip-private - else - echo Must be an admin user to run this command - fi |