summaryrefslogtreecommitdiff
path: root/templates/protocols/snmp/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/protocols/snmp/node.def')
-rw-r--r--templates/protocols/snmp/node.def9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/protocols/snmp/node.def b/templates/protocols/snmp/node.def
new file mode 100644
index 00000000..269b64ed
--- /dev/null
+++ b/templates/protocols/snmp/node.def
@@ -0,0 +1,9 @@
+help: "Configure SNMP"
+create: "/opt/vyatta/sbin/vyatta-snmp.pl --init-snmp"
+delete: "touch /tmp/snmp.\\$PPID"
+end: "if [ -f \"/tmp/snmp.\\$PPID\" ]; then \
+ /opt/vyatta/sbin/vyatta-snmp.pl --stop-snmp \
+ rm -rf /tmp/snmp.\\$PPID; \
+ else \
+ /opt/vyatta/sbin/vyatta-snmp.pl --update-snmp; \
+ fi; "