Refresh Dante transferable licenses.

31 views
Skip to first unread message

Drew

unread,
Feb 8, 2026, 6:21:52 PM (3 days ago) Feb 8
to QLab
Hi all, i have written a shell script to refresh the Dante transferable licenses.  After having issues with the license polling the server mid show and turning the license off because it could not reach the server I wrote this to combat that.  

The script will turn the wifi on, check for connectivity, run the license refresh, turn the wifi off.  

You could run it as a manual launch from the terminal, as a cronjob or launch it via a script in QLab.  If running as a cronjob the machines would need to be on for the 24 hours you set the job to run.

I have it in my shortcuts cue list and can be run from within Qlab manually.

Anyway I hope people that use the Dante transferable licenses find this useful.  
If you do use this script please leave the logo intact.

================================================================


#!/bin/sh

 ######################################################################
#                                                                      #
# This script is Posix compliant and tested with shellcheck.           #
# At line 51 enter you password and dante license number where stated. #  
# This script is negated and will fail if using perpetual licenses.    #
#                                                                      #
 ######################################################################


#Dante License Refresh
clear
printf "\033[1;31m--- DANTE VIRTUAL SOUNDCARD LICENSE REFRESH ---\033[0m\n\n"
sleep 0.5

#Check Wifi Status and turn on if set to off
if networksetup -getairportpower en0 | grep -q "On"; then
        printf "\033[1;32mWi-Fi is ENABLED.\033[0m\n\n";
else  
      networksetup -setairportpower en0 on
      printf "\033[1;31mWi-Fi is currently DISABLED.\033[0m\n\n"
      printf "\033[1;32mENABLING NOW...\033[0m\n"      
      networksetup -setairportpower en0 on; sleep 15
      printf "\033[1;32mENABLED\033[0m\n\n"
fi

#Check internet connectivity.
printf "\033[1;34mChecking internet connectivity...\033[0m\n"

IP="8.8.8.8" # Replace with the IP address you want to ping
COUNT=3 # Number of ping attempts
 
if ping -c $COUNT $IP > /dev/null 2>&1; then
  printf "\033[1;33mInternet Connectivity Confirmed.\033[0m\n\n"
else
  printf "\033[1;31mThere is currently no connection to the internet.\033[0m\n\n"
  sleep 1
  printf "\033[1;31mTERMINATING PROGRAMME.\033[0m"; sleep 5
  clear
  exit 1
fi

#Contact DVS license server and refresh.
cd /Library/"Application Support"/Audinate/DanteVirtualSoundcard/Tools/ || exit
sleep 1
echo "password-goes-here" | sudo -kS  ./dvs_licenser -a dvs-license-goes-here
sleep 1

#Turn Wi-Fi off if set to on
if networksetup -getairportpower en0 | grep -q "On"; then
      printf "\n"
      printf "\033[1;34mWi-Fi is currently ENABLED.\033[0m\n"  
      printf "\033[1;31mDISABLING NOW...\033[0m\n"; sleep 2
      networksetup -setairportpower en0 off; sleep 1
      printf "\033[1;31mDISABLED.\033[0m\n"
      printf "\033[5m\033[1;33mHAVE A GREAT SHOW.\033[0m\n"; sleep 5
fi
cd ~/ || exit
clear

#Logo
printf "\033[31mDante Refresh Script v1.3-20260209 by...\0330m\n"
printf "\033[1;31m
                                                                               
                                       ::                                      
                                 .::::::::::::                                  
                           .::::      :  :      ::::                            
                        :::          ::  .:          :.:                        
                     ::             ::    ::             ::                    
                   ::              ::      ::              ::                  
                 ::               ::        ::               ::                
               ::                .:    ::    ::                ::              
              :                  :    ::::    :                  :              
            .:                  :.   ::  ::   .:                  :            
            .                  ::   ::    ::   ::                  :            
           :                  ::    :     ::    ::                  :          
          ::                 ::    :.      ::    ::                 ::          
          :             ::::::::::::::::::::::::::::::::             :          
         ::                 :    ::          ::    :    ::           ::        
         .                 :    ::           ::    .:     ::         .:        
         :                :.    :             ::    ::     :          :        
         :               ::    ::      ::      ::    ::    ::         :        
         ::             ::    ::       ::       ::    ::   ::        ::        
         .:            ::    ::        ::        :     :. ::         :          
          :           ::    ::         ::        ::     :::          :          
          .:          :     ::         ::         ::  ::::          :.          
           ::        :    ::::::::::::::::::::::::::::   ::        .:          
            ::      ::                 ::                 :.      ::            
             ::    ::                  ::                  ::    ::            
              ::  ::::.                ::                .:::.  ::              
                .:                :::::.:.:::.                ::                
                  ::                   ::                   ::                  
                    ::                 ::                 :.                    
                       :.              ::              ::.                      
                          :::                      :::                          
                               ::::::.   .:::::::                              
                                       ::                                      
                                       ::                                      
                                       :.                                      
"                                              
Reply all
Reply to author
Forward
0 new messages