diff options
Diffstat (limited to 'templates/show/snmp/community')
4 files changed, 9 insertions, 0 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" |