summaryrefslogtreecommitdiff
path: root/templates/protocols/snmp/node.def
blob: ad81892cdbfec956122e08daccabcff08deee078 (plain)
1
2
3
4
5
6
7
8
9
10
11
priority: 980
help: Configure Simple Network Management Protocol (SNMP)
commit:expression: $VAR(community/) != ""; "must configure a community"
create:expression: "/opt/vyatta/sbin/vyatta-snmp.pl --init-snmp"
delete:expression: "touch /tmp/snmp.$PPID"
end:expression: "if [ -f \"/tmp/snmp.$PPID\" ]; then \
        sudo /opt/vyatta/sbin/vyatta-snmp.pl --stop-snmp \
        rm /tmp/snmp.$PPID; \
      else \
        sudo /opt/vyatta/sbin/vyatta-snmp.pl --update-snmp; \
      fi; "