help: Simple Network Management Protocol (SNMP) v3

create: if [ ! -d "/config/snmp" ]; then sudo mkdir /config/snmp ; fi
    if [ ! -d "/config/snmp/tls" ]; then 
      sudo mkdir /config/snmp/tls ; 
      if [ -d "/etc/snmp/tls" ] ; then 
	sudo mv /etc/snmp/tls/* /config/snmp/tls > /dev/null 2>&1;
	sudo chmod -R 600 /config/snmp/tls;
	sudo rmdir /etc/snmp/tls > /dev/null 2>&1;
	sudo rm /etc/snmp/tls > /dev/null 2>&1;
      fi
      sudo ln -s /config/snmp/tls /etc/snmp/tls;
    fi
    lnk=`readlink /etc/snmp/tls`
    if [ "$lnk" != "/config/snmp/tls" ]; then
      sudo rm -f /etc/snmp/tls;
      sudo ln -s /config/snmp/tls /etc/snmp/tls;
    fi
    
begin: if [ -d "/config/snmp/tls" ]; then
    sudo chmod -R 600 /config/snmp/tls;
  fi

delete: touch /tmp/snmp-v3.$PPID

end:if [ -f "/tmp/snmp-v3.$PPID" ]
    then
	 sudo /opt/vyatta/sbin/vyatta-snmp-v3.pl --delete-snmp
         rm /tmp/snmp-v3.$PPID
    fi