summaryrefslogtreecommitdiff
path: root/templates/show
diff options
context:
space:
mode:
authorJames Davidson <james.davidson@vyatta.com>2013-03-06 10:01:33 -0800
committerJames Davidson <james.davidson@vyatta.com>2013-03-06 10:01:33 -0800
commit3e5ac8cc1d3bed7fe392ba052f9f037f16441f6f (patch)
treeef1a5298b6cbe3dec22962a10f587b97690f47be /templates/show
parente0a1bb48d6399b4788f9a69e543992cd2eb50aef (diff)
downloadvyatta-op-3e5ac8cc1d3bed7fe392ba052f9f037f16441f6f.tar.gz
vyatta-op-3e5ac8cc1d3bed7fe392ba052f9f037f16441f6f.zip
Sync up SNMPv3 support
SNMP-100 Implement high-level vyatta CLI SNMP-135 change 'show snmp', add 'show snmp v3 certificates' SNMP-142 'sh snmp v3 cert' error/warning messages SNMP-143 show CLI implementation SNMP-152 Hide 'No such file or directory' error message SNMP-143 show CLI implementation SNMP-154 user friendly error message on 'show snmp' SNMP-157 Run Perltidy for all Perl scripts SNMP-158 change output of 'sh snmp v3 trap-target'
Diffstat (limited to 'templates/show')
-rw-r--r--templates/show/snmp/v3/certificates/node.def7
-rw-r--r--templates/show/snmp/v3/group/node.def2
-rw-r--r--templates/show/snmp/v3/node.def2
-rw-r--r--templates/show/snmp/v3/trap-target/node.def2
-rw-r--r--templates/show/snmp/v3/user/node.def2
-rw-r--r--templates/show/snmp/v3/view/node.def2
6 files changed, 17 insertions, 0 deletions
diff --git a/templates/show/snmp/v3/certificates/node.def b/templates/show/snmp/v3/certificates/node.def
new file mode 100644
index 0000000..e66fc0d
--- /dev/null
+++ b/templates/show/snmp/v3/certificates/node.def
@@ -0,0 +1,7 @@
+help: Show TSM certificates
+run: files=`sudo ls /etc/snmp/tls/certs/ 2> /dev/null`;
+ if [ -n "$files" ]; then
+ sudo /usr/bin/net-snmp-cert showcerts --subject --fingerprint
+ else
+ echo "You don't have any certificates. Put it in '/etc/snmp/tls/certs/' folder."
+ fi
diff --git a/templates/show/snmp/v3/group/node.def b/templates/show/snmp/v3/group/node.def
new file mode 100644
index 0000000..7ff947a
--- /dev/null
+++ b/templates/show/snmp/v3/group/node.def
@@ -0,0 +1,2 @@
+help: Show the list of configured groups
+run: /opt/vyatta/bin/vyatta-show-snmp-v3.pl --group \ No newline at end of file
diff --git a/templates/show/snmp/v3/node.def b/templates/show/snmp/v3/node.def
new file mode 100644
index 0000000..70c0df2
--- /dev/null
+++ b/templates/show/snmp/v3/node.def
@@ -0,0 +1,2 @@
+help: Show status of SNMP v3 on localhost
+run: /opt/vyatta/bin/vyatta-show-snmp-v3.pl --all \ No newline at end of file
diff --git a/templates/show/snmp/v3/trap-target/node.def b/templates/show/snmp/v3/trap-target/node.def
new file mode 100644
index 0000000..9f0d2f1
--- /dev/null
+++ b/templates/show/snmp/v3/trap-target/node.def
@@ -0,0 +1,2 @@
+help: Show the list of configured targets
+run: /opt/vyatta/bin/vyatta-show-snmp-v3.pl --trap
diff --git a/templates/show/snmp/v3/user/node.def b/templates/show/snmp/v3/user/node.def
new file mode 100644
index 0000000..621ccc8
--- /dev/null
+++ b/templates/show/snmp/v3/user/node.def
@@ -0,0 +1,2 @@
+help: Show the list of configured users
+run: /opt/vyatta/bin/vyatta-show-snmp-v3.pl --user
diff --git a/templates/show/snmp/v3/view/node.def b/templates/show/snmp/v3/view/node.def
new file mode 100644
index 0000000..7e05d84
--- /dev/null
+++ b/templates/show/snmp/v3/view/node.def
@@ -0,0 +1,2 @@
+help: Show the list of configured views
+run: /opt/vyatta/bin/vyatta-show-snmp-v3.pl --view \ No newline at end of file