diff options
author | Alex Harpin <development@landsofshadow.co.uk> | 2015-11-21 09:05:04 +0000 |
---|---|---|
committer | Alex Harpin <development@landsofshadow.co.uk> | 2015-11-21 09:05:04 +0000 |
commit | 6b8e2a100d2864adcdc309d08b91ecbb22c83403 (patch) | |
tree | 8f949debe7247753977ae45ef5e5cc77844cf0d8 | |
parent | 074782df3af55e7c685932bdcdb66782533c1343 (diff) | |
download | vyatta-op-6b8e2a100d2864adcdc309d08b91ecbb22c83403.tar.gz vyatta-op-6b8e2a100d2864adcdc309d08b91ecbb22c83403.zip |
vyatta-op: add restart cli command for snmp
Add a CLI op mode command to allow restarting of the SNMP service
without having to update the configuration.
Bug #514 http://bugzilla.vyos.net/show_bug.cgi?id=514
-rw-r--r-- | templates/restart/snmp/node.def | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/restart/snmp/node.def b/templates/restart/snmp/node.def new file mode 100644 index 0000000..6d7c35b --- /dev/null +++ b/templates/restart/snmp/node.def @@ -0,0 +1,9 @@ +help: Restart SNMP service + +run: + echo "Restarting SNMP..." + sudo /opt/vyatta/sbin/vyatta-snmp.pl --restart-snmp; + if [[ $? -eq 0 ]]; then + echo "Success!" + fi + |