summaryrefslogtreecommitdiff
path: root/templates/service/snmp/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/service/snmp/node.def')
-rw-r--r--templates/service/snmp/node.def12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/service/snmp/node.def b/templates/service/snmp/node.def
new file mode 100644
index 00000000..6ce9c2c7
--- /dev/null
+++ b/templates/service/snmp/node.def
@@ -0,0 +1,12 @@
+priority: 980
+help: Configure Simple Network Management Protocol (SNMP)
+commit:expression: $VAR(community/) != ""; "must configure a community"
+
+delete: touch /tmp/snmp.$PPID
+end:if [ -f "/tmp/snmp.$PPID" ]
+ then sudo /opt/vyatta/sbin/vyatta-snmp.pl --stop-snmp
+ rm /tmp/snmp.$PPID
+ rm -f /etc/snmp/snmpd.conf
+ else
+ sudo /opt/vyatta/sbin/vyatta-snmp.pl --update-snmp
+ fi