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