summaryrefslogtreecommitdiff
path: root/templates/show/snmp/v3/certificates/node.def
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/snmp/v3/certificates/node.def
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/snmp/v3/certificates/node.def')
-rw-r--r--templates/show/snmp/v3/certificates/node.def7
1 files changed, 7 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