diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-06-24 12:50:17 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-06-24 12:50:17 +0200 |
commit | bacecf80ea16d3cd30dc7c98c98af013b2adc258 (patch) | |
tree | 2b1d6f48708ace28ae4f6c9893ee50f6f390c6b7 /templates/service/snmp/node.def | |
parent | 0d8e75e2e808ccf366a1527647a6353c09d92237 (diff) | |
parent | 0f19dc57ed6588c083eee8aa9aee09b92b441b08 (diff) | |
download | vyatta-cfg-system-lithium.tar.gz vyatta-cfg-system-lithium.zip |
Merge branch 'current' into lithiumlithium
Conflicts:
debian/changelog
scripts/snmp/vyatta-snmp-v3.pl
scripts/snmp/vyatta-snmp.pl
templates/interfaces/tunnel/node.def
templates/system/sysctl/custom/node.def
Diffstat (limited to 'templates/service/snmp/node.def')
-rw-r--r-- | templates/service/snmp/node.def | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/templates/service/snmp/node.def b/templates/service/snmp/node.def deleted file mode 100644 index 9fb161dc..00000000 --- a/templates/service/snmp/node.def +++ /dev/null @@ -1,27 +0,0 @@ -priority: 980 -help: Simple Network Management Protocol (SNMP) -commit:expression: $VAR(community/) != "" || $VAR(community6/) != "" || $VAR(v3/) != "" \ - ; "must configure a community or community6 or v3" - -create: if [ ! -d "/config/snmp" ]; then sudo mkdir /config/snmp ; fi -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; - sudo rm -f /etc/snmp/snmpd.conf; - else - if [ -n "$VAR(v3/)" ]; then - sudo /opt/vyatta/sbin/vyatta-snmp-v3.pl --check-config; - if [ $? != 0 ]; then - exit 1; - fi - fi - sudo /opt/vyatta/sbin/vyatta-snmp.pl --update-snmp; - if [ -n "$VAR(v3/)" ] - then - sudo /opt/vyatta/sbin/vyatta-snmp-v3.pl --update-snmp; - else - sudo invoke-rc.d snmpd start > /dev/null 2>&1; - fi - fi |