From 6b8e2a100d2864adcdc309d08b91ecbb22c83403 Mon Sep 17 00:00:00 2001 From: Alex Harpin Date: Sat, 21 Nov 2015 09:05:04 +0000 Subject: 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 --- templates/restart/snmp/node.def | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 templates/restart/snmp/node.def 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 + -- cgit v1.2.3