summaryrefslogtreecommitdiff
path: root/templates/restart/snmp/node.def
blob: 689b03512e2614b8e93b96e9ce01e066d7e32004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
help: Restart SNMP service

run:
      if cli-shell-api existsActive service snmp; then
          echo "Restarting SNMP..."
          sudo /opt/vyatta/sbin/vyatta-snmp.pl --restart-snmp;
          if [[ $? -eq 0 ]]; then
              echo "Success!"
          fi
      else
          echo "SNMP is not configured"
      fi