diff options
Diffstat (limited to 'templates/show/snmp/v3/certificates/node.def')
-rw-r--r-- | templates/show/snmp/v3/certificates/node.def | 7 |
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 |