summaryrefslogtreecommitdiff
path: root/templates/protocols/snmp/node.def
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@uffda.(none)>2007-10-20 20:56:26 -0700
committerStig Thormodsrud <stig@uffda.(none)>2007-10-20 20:56:26 -0700
commit92ee6e6c49cacad059478ad1a50ffa7a50ecd90e (patch)
tree7f638266f2b8826e9e27772a0d8dcb2aa40a3d89 /templates/protocols/snmp/node.def
parent65f1eec84304afcde1935808519bd2cf51677a8a (diff)
downloadvyatta-cfg-quagga-92ee6e6c49cacad059478ad1a50ffa7a50ecd90e.tar.gz
vyatta-cfg-quagga-92ee6e6c49cacad059478ad1a50ffa7a50ecd90e.zip
Add basic snmp support.
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; "