• Blog posts

    Bio

    Question:

    How to configure the Network License Manager on Mac OS X?

    Answer:

    Note: If you have a firewall between the license server(s) and the client computers, you need to open some TCP/IP ports on the server for license-related communication. Open port 2080 for adskflex, and open ports 27000 through 27009 for lmgrd.

    To prepare for configuration:

    1. Enter the following command in a Terminal window to stop your license server:

      ./lmutil lmdown -q -force
       
    2. Configure the firewall between the license server(s) and the client computers to open TCP/IP ports 2080 for adskflexand open ports 27000 through 27009 for lmgrd.

    To configure a Mac OS X license server with automatic startup:

    Note: The following instructions work on OS X 10.10 (Yosemite) and earlier but do not work on OS X 10.11 (El Capitan) and later.

    1. Verify that the following files are saved in the directory /usr/local/flexnetserver(created during installation): lmgrdadskflexlmutil, and your product license file (.lic)
       
    2. If it does not already exist, create the directory StartupItemsunder /Library:

      sudo mkdir StartupItems
       
    3. Create a startup item directory:

      /Users/<user id>/adsknlm
       
    4. Create an executable script file with the same name as the directory name adsknlmby entering the following in Terminal:

      #!/bin/sh
      ./etc/rc.common
      StartService() {
      ConsoleMessage “Starting Autodesk Network License Manager”
      /usr/local/flexnetserver/lmgrd -c\
      /usr/local/flexnetserver/productlicense.lic -l\
      /usr/local/flexnetserver/debug.log
      }

      StopService() {
      ConsoleMessage “Stopping Autodesk Network License Manager”
      /usr/local/flexnetserver/lmutil lmdown -q -all -force
      }

      RestartService() {
      ConsoleMessage “Restarting Autodesk Network License Manager”
      /usr/local/flexnetserver/lmutil lmreread -c /usr/local/flexnetserver/productlicense.lic
      }

      RunService “$1”
       
    5. Grant the executable permission to run the script by entering the following in Terminal:

      chmod +x adsknlm
       
    6. Create a property list file named plistand add it to the directory by entering the following in Terminal:

      {
      Description=”Autodesk Network License Manager”;
      Provides=(“adsknlm”)OrderPreference =”None”;
      Messages={start=
      “Starting Autodesk Network Manager Service”;
      stop=
      “Stopping Autodesk Network Manager Service”;
      };}{
       
    7. Move the startup item directory to /Library/StartupItems/and modify your directory permissions. For security reasons, your startup item directory should be owned by root, the group should be set to wheel, and the permission for the directory should be 755. Enter the following in Terminal:

      sudo mv /Users/<user id>/adsknlm/ /Library/StartupItems/
      sudo chown root /Library/StartupItems/adsknlm/
      sudo chgrp wheel /Library/StartupItems/adsknlm/
      sudo chmod 755 /Library/StartupItems/adsknlm/
      sudo chown root /Library/StartupItems/adsknlm/*
      sudo chgrp wheel /Library/StartupItems/adsknlm/*

      Your resulting directory should look similar to this:

      drwxr-xr-x
      4 root wheel 136 Jul 31 01 01:50drwxr-xr-x
      3 root wheel 102 Jul 30 01 21:59-rw-r--r--
      1 root wheel 204 Jul 30 20:16 StartupParameters.plist-rwxr-xr-x
      1 root wheel 417 Jul 31 00:45 adsknlm
       
    8. Reboot your Mac and verify in the debug.log file (/Users/<user id>/NLG/) that the lmgrdand adskflex start up successfully.