diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-11-09 16:23:40 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-11-09 16:23:40 -0800 |
commit | e262024889614e1e20718497ff03eb88efaecc2b (patch) | |
tree | 3dca68111089a9e005704e6d1d38ed6b076d2fef /templates/show | |
parent | 002783d4e34a51ba54690170fd6c950f960810c9 (diff) | |
download | vyatta-op-e262024889614e1e20718497ff03eb88efaecc2b.tar.gz vyatta-op-e262024889614e1e20718497ff03eb88efaecc2b.zip |
Enhance show snmp command
Resolve usability issues with 'show snmp' by adding some more control
1. show snmp -- find usable community for loopback
2. show snmp community <name> -- check connectivity
3. show snmp community <name> host <addr> -- check remote connectivity
Diffstat (limited to 'templates/show')
-rw-r--r-- | templates/show/snmp/community/node.def | 1 | ||||
-rw-r--r-- | templates/show/snmp/community/node.tag/host/node.def | 2 | ||||
-rw-r--r-- | templates/show/snmp/community/node.tag/host/node.tag/node.def | 3 | ||||
-rw-r--r-- | templates/show/snmp/community/node.tag/node.def | 3 | ||||
-rw-r--r-- | templates/show/snmp/node.def | 2 |
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 |