summaryrefslogtreecommitdiff
path: root/templates/show
diff options
context:
space:
mode:
Diffstat (limited to 'templates/show')
-rw-r--r--templates/show/snmp/community/node.def1
-rw-r--r--templates/show/snmp/community/node.tag/host/node.def2
-rw-r--r--templates/show/snmp/community/node.tag/host/node.tag/node.def3
-rw-r--r--templates/show/snmp/community/node.tag/node.def3
-rw-r--r--templates/show/snmp/node.def2
5 files changed, 10 insertions, 1 deletions
diff --git a/templates/show/snmp/community/node.def b/templates/show/snmp/community/node.def
new file mode 100644
index 0000000..48e7d1d
--- /dev/null
+++ b/templates/show/snmp/community/node.def
@@ -0,0 +1 @@
+help: Show status of SNMP community
diff --git a/templates/show/snmp/community/node.tag/host/node.def b/templates/show/snmp/community/node.tag/host/node.def
new file mode 100644
index 0000000..ac7e559
--- /dev/null
+++ b/templates/show/snmp/community/node.tag/host/node.def
@@ -0,0 +1,2 @@
+help: Show status of SNMP on remote host
+
diff --git a/templates/show/snmp/community/node.tag/host/node.tag/node.def b/templates/show/snmp/community/node.tag/host/node.tag/node.def
new file mode 100644
index 0000000..b20409d
--- /dev/null
+++ b/templates/show/snmp/community/node.tag/host/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Show status of SNMP on specified host
+allowed: echo -n '<hostname> <x.x.x.x>'
+run: ${vyatta_bindir}/vyatta-show-snmp.pl --community $4 --host $6
diff --git a/templates/show/snmp/community/node.tag/node.def b/templates/show/snmp/community/node.tag/node.def
new file mode 100644
index 0000000..48aa6ad
--- /dev/null
+++ b/templates/show/snmp/community/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Show status of specified SNMP community
+allowed: ${vyatta_bindir}/vyatta-show-snmp.pl --allowed
+run: ${vyatta_bindir}/vyatta-show-snmp.pl --community="$4"
diff --git a/templates/show/snmp/node.def b/templates/show/snmp/node.def
index ea8ca47..98f4366 100644
--- a/templates/show/snmp/node.def
+++ b/templates/show/snmp/node.def
@@ -1,2 +1,2 @@
-help: Show SNMP status
+help: Show status of SNMP on localhost
run: ${vyatta_bindir}/vyatta-show-snmp.pl