summaryrefslogtreecommitdiff
path: root/templates/service/snmp/node.def
blob: 6ce9c2c7b964d316f48c2fd8578b9193a9b09dab (plain)
1
2
3
4
5
6
7
8
9
10
11
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