How to set up the Autodesk Network License Manager on Linux

Autodesk Support

Oct 2, 2024


Products and versions covered


Issue:

This article shows how to set up and configure the Autodesk Network License Manager on a Linux operating system.

Environment:

Linux

Solution:

Note: The Autodesk License Manager (11.18) is supported only on the following Linux distros:

  • Rocky Linux 9

  • Red Hat Enterprise Linux 9

  • Red Hat Enterprise Linux 8

  • Red Hat Enterprise Linux 7

  • SUSE Linux Enterprise 15 SP2

  • SUSE Linux Enterprise 15 SP1

  • SUSE Linux Enterprise 15

  • SUSE Linux Enterprise 12 SP4

See System Requirements for the Network License Manager

 
To configure the license manager use the following steps:
  1. Download Autodesk Network License Manager v. 11.19.4.1 for Linux from this link

    • ​​Download the nlm11.19.4.1_ipv4_ipv6_linux64.tar.gz file to your desktop.

  2. To install the Autodesk Network License Manager run the following command as root.

    • tar –zxvf nlm11.19.4.1_ipv4_ipv6_linux64.tar.gz

    • rpm -vhi nlm11.19.4.1_ipv4_ipv6_linux64.rpm

    • The license server will be installed in /opt/flexnetserver/ directory.

  3. Find the license server Host Name and Host ID 

  • To obtain the license server system hostid run the following command

/opt/flexnetserver/lmutil lmhostid

From the command output note the hostid in quotes, if the system has two active NIC cards, select the first MAC address.
lmutil - Copyright (c) 1989-2018 Flexera. All Rights Reserved.
The FlexNet host ID of this machine is "000c297949e0"

  • To obtain the license server system hostname run the following command

/opt/flexnetserver/lmutil lmhostid hostname

From the command output note the hostname of the license server. 
lmutil - Copyright (c) 1989-2018 Flexera. All Rights Reserved.
The FlexNet host ID of this machine is "HOSTNAME=Centos7.localdomain"

 

  1. Generate your Network License File in Autodesk Account

    • Once the license file is generated, make sure it has .lic extension (e.g. adsk_license.lic) and place it in /opt/flexnetserver/licenses directory.  If the directory doesn't exits, create it with this command: sudo mkdir /opt/flexnetserver/licenses

Note: in this article, we will refer by adsk_license.lic your network license file name.

  1. To start the Network License Server

    • /opt/flexnetserver/lmgrd -c /opt/flexnetserver/licenses/adsk_license.lic -l /opt/flexnetserver/server_log.log

  2. To obtain license server status enquiry

    • /opt/flexnetserver/lmutil lmstat -a -c /opt/flexnetserver/licenses/adsk_license.lic

  3. To stop your license server service

    • /opt/flexnetserver/lmutil lmdown -q -force

    • alternatively, you can also run ps command to obtain process ids for lmgrd and adskflex and then kill those processes

      • ps -aw | grep lmgrd

      • ps -aw | grep adskflex

      • kill -9 (provide process ids obtained by previous commands individually)

  4. To start the license server automatically after the system reboot

    • Open /etc/rc.d/rc.local script as root and enter license server start up command in it.

touch /var/lock/subsys/local
/opt/flexnetserver/lmgrd -c /opt/flexnetserver/licenses/adsk_license.lic -l /opt/flexnetserver/server_log.log

Note: To ensure that the script will be executed during boot, run the following command as root.
chmod +x /etc/rc.d/rc.local

 

  1. Make sure that all necessary ports are open:

Products:

All Desktop Products;


Was this information helpful?


Need help? Ask the Autodesk Assistant!

The Assistant can help you find answers or contact an agent.


What level of support do you have?

Different subscription plans provide distinct categories of support. Find out the level of support for your plan.

View levels of support